dracut/adduser.sh: fix issue #1.
Make sure that systemd uses our getty service modified to autologin with the live user.
This commit is contained in:
parent
90c2d5fa06
commit
65daf0eb35
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue