From d11737ffe86f22efc9e84ce4eec7c6f4bae1a4f3 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Mon, 29 Jun 2020 20:06:19 +0300 Subject: Use drop-in files for journald and logind configuration --- .../airootfs/etc/systemd/journald.conf.d/volatile-storage.conf | 2 ++ .../releng/airootfs/etc/systemd/logind.conf.d/do-not-suspend.conf | 4 ++++ configs/releng/airootfs/root/customize_airootfs.sh | 5 ----- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 configs/releng/airootfs/etc/systemd/journald.conf.d/volatile-storage.conf create mode 100644 configs/releng/airootfs/etc/systemd/logind.conf.d/do-not-suspend.conf (limited to 'configs/releng/airootfs') diff --git a/configs/releng/airootfs/etc/systemd/journald.conf.d/volatile-storage.conf b/configs/releng/airootfs/etc/systemd/journald.conf.d/volatile-storage.conf new file mode 100644 index 0000000..b69850d --- /dev/null +++ b/configs/releng/airootfs/etc/systemd/journald.conf.d/volatile-storage.conf @@ -0,0 +1,2 @@ +[Journal] +Storage=volatile diff --git a/configs/releng/airootfs/etc/systemd/logind.conf.d/do-not-suspend.conf b/configs/releng/airootfs/etc/systemd/logind.conf.d/do-not-suspend.conf new file mode 100644 index 0000000..f3ecb39 --- /dev/null +++ b/configs/releng/airootfs/etc/systemd/logind.conf.d/do-not-suspend.conf @@ -0,0 +1,4 @@ +[Login] +HandleSuspendKey=ignore +HandleHibernateKey=ignore +HandleLidSwitch=ignore diff --git a/configs/releng/airootfs/root/customize_airootfs.sh b/configs/releng/airootfs/root/customize_airootfs.sh index ecd3b57..5ea4a8b 100755 --- a/configs/releng/airootfs/root/customize_airootfs.sh +++ b/configs/releng/airootfs/root/customize_airootfs.sh @@ -15,11 +15,6 @@ passwd -d root sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist -sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf - -sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf -sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf -sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf systemctl enable pacman-init.service choose-mirror.service systemd-networkd.service systemd-resolved.service systemctl set-default multi-user.target -- cgit v1.2.3-70-g09d2