Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2013-05-26 18:56:25 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2013-05-26 19:09:55 -0300
commit718089f7cb499d2a9935de71dcbc8b3e53c6fb2a (patch)
treeda5ae2c86269d98ac58414ec89c3d412515b3eb8
parent8fd197a420558a6b9b55f2e61a7cc2008a0200e6 (diff)
[configs/releng] Use drop-in feature of systemd for getty autologin
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
-rw-r--r--configs/releng/root-image/etc/systemd/system/getty@tty1.service.d/autologin.conf3
-rwxr-xr-xconfigs/releng/root-image/root/customize_root_image.sh7
2 files changed, 4 insertions, 6 deletions
diff --git a/configs/releng/root-image/etc/systemd/system/getty@tty1.service.d/autologin.conf b/configs/releng/root-image/etc/systemd/system/getty@tty1.service.d/autologin.conf
new file mode 100644
index 0000000..d1d8474
--- /dev/null
+++ b/configs/releng/root-image/etc/systemd/system/getty@tty1.service.d/autologin.conf
@@ -0,0 +1,3 @@
+[Service]
+ExecStart=
+ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
diff --git a/configs/releng/root-image/root/customize_root_image.sh b/configs/releng/root-image/root/customize_root_image.sh
index cc47845..ba106c8 100755
--- a/configs/releng/root-image/root/customize_root_image.sh
+++ b/configs/releng/root-image/root/customize_root_image.sh
@@ -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