about summary refs log tree commit diff
path: root/dracut
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2013-06-12 05:28:43 +0200
committerJuan RP <xtraeme@gmail.com>2013-06-12 05:28:43 +0200
commit65daf0eb35a83878fe3443e3a8ace580651e5519 (patch)
tree4763f3edb65b657f2014d55e7def4e0299cc7c3a /dracut
parent90c2d5fa065bc89bf9965b3074b3c32e08ae327f (diff)
downloadhrmpf-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')
-rw-r--r--dracut/adduser.sh2
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