[configs/releng] Use drop-in feature of systemd for getty autologin
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
8fd197a420
commit
718089f7cb
@ -0,0 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
|
@ -17,9 +17,4 @@ chmod 440 /etc/sudoers.d/g_wheel
|
||||
|
||||
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
|
||||
|
||||
sed 's#\(^ExecStart=-/sbin/agetty\)#\1 --autologin root#;
|
||||
s#\(^Alias=getty.target.wants/\).\+#\1autologin@tty1.service#' \
|
||||
/usr/lib/systemd/system/getty@.service > /etc/systemd/system/autologin@.service
|
||||
|
||||
systemctl disable getty@tty1.service
|
||||
systemctl enable multi-user.target pacman-init.service autologin@.service dhcpcd.service
|
||||
systemctl enable multi-user.target pacman-init.service dhcpcd.service
|
||||
|
Loading…
Reference in New Issue
Block a user