mirror of
https://github.com/philmmanjaro/alma.git
synced 2025-07-26 23:19:29 +02:00
Tweak journald (fix #1)
This commit is contained in:
parent
9771446d36
commit
a76b6aff0c
12
src/main.rs
12
src/main.rs
@ -32,6 +32,12 @@ BINARIES=()
|
|||||||
FILES=()
|
FILES=()
|
||||||
HOOKS=(base udev block filesystems keyboard fsck)";
|
HOOKS=(base udev block filesystems keyboard fsck)";
|
||||||
|
|
||||||
|
static JOURNALD_CONF: &'static str = "
|
||||||
|
[Journal]
|
||||||
|
Storage=volatile
|
||||||
|
SystemMaxUse=16M
|
||||||
|
";
|
||||||
|
|
||||||
#[derive(StructOpt)]
|
#[derive(StructOpt)]
|
||||||
#[structopt(name = "alma", about = "Arch Linux Mobile Appliance")]
|
#[structopt(name = "alma", about = "Arch Linux Mobile Appliance")]
|
||||||
enum App {
|
enum App {
|
||||||
@ -154,6 +160,12 @@ fn create(disk: PathBuf, extra_packages: Vec<String>) -> Result<(), Error> {
|
|||||||
.args(&["systemctl", "enable", "NetworkManager"])
|
.args(&["systemctl", "enable", "NetworkManager"])
|
||||||
.run(ErrorKind::PostInstallation)?;
|
.run(ErrorKind::PostInstallation)?;
|
||||||
|
|
||||||
|
info!("Configuring journald");
|
||||||
|
fs::write(
|
||||||
|
mount_point.path().join("etc/systemd/journald.conf"),
|
||||||
|
JOURNALD_CONF,
|
||||||
|
).context(ErrorKind::PostInstallation)?;
|
||||||
|
|
||||||
info!("Generating initramfs");
|
info!("Generating initramfs");
|
||||||
fs::write(mount_point.path().join("etc/mkinitcpio.conf"), MKINITCPIO)
|
fs::write(mount_point.path().join("etc/mkinitcpio.conf"), MKINITCPIO)
|
||||||
.context(ErrorKind::Initramfs)?;
|
.context(ErrorKind::Initramfs)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user