diff options
author | Juan RP <xtraeme@gmail.com> | 2013-06-12 05:28:43 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2013-06-12 05:28:43 +0200 |
commit | 65daf0eb35a83878fe3443e3a8ace580651e5519 (patch) | |
tree | 4763f3edb65b657f2014d55e7def4e0299cc7c3a /dracut/adduser.sh | |
parent | 90c2d5fa065bc89bf9965b3074b3c32e08ae327f (diff) | |
download | hrmpf-65daf0eb35a83878fe3443e3a8ace580651e5519.tar.gz hrmpf-65daf0eb35a83878fe3443e3a8ace580651e5519.tar.xz hrmpf-65daf0eb35a83878fe3443e3a8ace580651e5519.zip |
dracut/adduser.sh: fix issue #1.
Make sure that systemd uses our getty service modified to autologin with the live user.
Diffstat (limited to 'dracut/adduser.sh')
-rw-r--r-- | dracut/adduser.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |