Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Tweak journald (fix #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
r-darwish committed Nov 4, 2018
1 parent 9771446 commit a76b6af
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ BINARIES=()
FILES=()
HOOKS=(base udev block filesystems keyboard fsck)";

static JOURNALD_CONF: &'static str = "
[Journal]
Storage=volatile
SystemMaxUse=16M
";

#[derive(StructOpt)]
#[structopt(name = "alma", about = "Arch Linux Mobile Appliance")]
enum App {
Expand Down Expand Up @@ -154,6 +160,12 @@ fn create(disk: PathBuf, extra_packages: Vec<String>) -> Result<(), Error> {
.args(&["systemctl", "enable", "NetworkManager"])
.run(ErrorKind::PostInstallation)?;

info!("Configuring journald");
fs::write(
mount_point.path().join("etc/systemd/journald.conf"),
JOURNALD_CONF,
).context(ErrorKind::PostInstallation)?;

info!("Generating initramfs");
fs::write(mount_point.path().join("etc/mkinitcpio.conf"), MKINITCPIO)
.context(ErrorKind::Initramfs)?;
Expand Down

0 comments on commit a76b6af

Please sign in to comment.