From 5b858b6d86b4dd2582373fe67dea6c58f3b10636 Mon Sep 17 00:00:00 2001 From: natemaia Date: Mon, 23 Dec 2019 00:01:09 -0800 Subject: [PATCH] Fix: replace changes to /etc/systemd/login.conf after install --- archlabs-installer | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archlabs-installer b/archlabs-installer index 9ff8d85..b55ec7f 100755 --- a/archlabs-installer +++ b/archlabs-installer @@ -1184,9 +1184,9 @@ install_base() rm -f "$MNT/etc/systemd/scripts/choose-mirror" rm -f "$MNT/etc/systemd/system/"{choose-mirror.service,etc-pacman.d-gnupg.mount,pacman-init.service} sed -i 's/#\(Storage=\)volatile/\1auto/' "$MNT/etc/systemd/journald.conf" - sed -i 's/#\(HandleSuspendKey=\)ignore/\1suspend/' "$MNT/etc/systemd/logind.conf" - sed -i 's/#\(HandleHibernateKey=\)ignore/\1hibernate/' "$MNT/etc/systemd/logind.conf" - sed -i 's/#\(HandleLidSwitch=\)ignore/\1suspend/' "$MNT/etc/systemd/logind.conf" + sed -i 's/\(HandleLidSwitch=\)ignore/#\1suspend/' "$MNT/etc/systemd/logind.conf" + sed -i 's/\(HandleSuspendKey=\)ignore/#\1suspend/' "$MNT/etc/systemd/logind.conf" + sed -i 's/\(HandleHibernateKey=\)ignore/#\1hibernate/' "$MNT/etc/systemd/logind.conf" find "$MNT/boot" -name '*-ucode.img' -delete # changing distro name?