From 65daf0eb35a83878fe3443e3a8ace580651e5519 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 12 Jun 2013 05:28:43 +0200 Subject: dracut/adduser.sh: fix issue #1. Make sure that systemd uses our getty service modified to autologin with the live user. --- dracut/adduser.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dracut') diff --git a/dracut/adduser.sh b/dracut/adduser.sh index 79133ac..aaee9f3 100644 --- a/dracut/adduser.sh +++ b/dracut/adduser.sh @@ -25,6 +25,8 @@ fi rm -f "${NEWROOT}/etc/systemd/system/getty.target.wants/getty@tty1.service" sed -e "s|/sbin/agetty --noclear|& -a ${USERNAME}|g" \ "${NEWROOT}/usr/lib/systemd/system/getty@.service" > \ + "${NEWROOT}/etc/systemd/system/getty@.service" +ln -sf /etc/systemd/system/getty@.service \ "${NEWROOT}/etc/systemd/system/getty.target.wants/getty@tty1.service" if [ -d ${NEWROOT}/etc/polkit-1 ]; then -- cgit 1.4.1