Use drop-in files for journald and logind configuration

This commit is contained in:
nl6720 2020-06-29 20:06:19 +03:00
parent 47533fd974
commit d11737ffe8
No known key found for this signature in database
GPG Key ID: 5CE88535E188D369
3 changed files with 6 additions and 5 deletions

View File

@ -0,0 +1,2 @@
[Journal]
Storage=volatile

View File

@ -0,0 +1,4 @@
[Login]
HandleSuspendKey=ignore
HandleHibernateKey=ignore
HandleLidSwitch=ignore

View File

@ -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