Преглед на файлове

dracut/adduser.sh: fix issue #1.

Make sure that systemd uses our getty service modified to autologin with the live user.
Juan RP преди 12 години
родител
ревизия
65daf0eb35
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      dracut/adduser.sh

+ 2 - 0
dracut/adduser.sh

@@ -25,6 +25,8 @@ fi
 rm -f "${NEWROOT}/etc/systemd/system/getty.target.wants/[email protected]"
 sed -e "s|/sbin/agetty --noclear|& -a ${USERNAME}|g" \
     "${NEWROOT}/usr/lib/systemd/system/[email protected]" > \
+    "${NEWROOT}/etc/systemd/system/[email protected]"
+ln -sf /etc/systemd/system/[email protected] \
     "${NEWROOT}/etc/systemd/system/getty.target.wants/[email protected]"
 
 if [ -d ${NEWROOT}/etc/polkit-1 ]; then