Use drop-in files for journald and logind configuration
This commit is contained in:
parent
47533fd974
commit
d11737ffe8
@ -0,0 +1,2 @@
|
||||
[Journal]
|
||||
Storage=volatile
|
@ -0,0 +1,4 @@
|
||||
[Login]
|
||||
HandleSuspendKey=ignore
|
||||
HandleHibernateKey=ignore
|
||||
HandleLidSwitch=ignore
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user