Skip to content
Snippets Groups Projects
Commit 718089f7 authored by Gerardo Pozzi's avatar Gerardo Pozzi
Browse files

[configs/releng] Use drop-in feature of systemd for getty autologin

parent 8fd197a4
No related branches found
No related tags found
No related merge requests found
[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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment