[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:
Gerardo Exequiel Pozzi 2013-05-26 18:56:25 -03:00
parent 8fd197a420
commit 718089f7cb
2 changed files with 4 additions and 6 deletions

View File

@ -0,0 +1,3 @@
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux

View File

@ -17,9 +17,4 @@ chmod 440 /etc/sudoers.d/g_wheel
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
sed 's#\(^ExecStart=-/sbin/agetty\)#\1 --autologin root#; systemctl enable multi-user.target pacman-init.service dhcpcd.service
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