dracut/adduser.sh: repair autologin with the latest agetty runit service.
This commit is contained in:
parent
27ab1fc5d5
commit
29340d664e
|
@ -27,7 +27,7 @@ fi
|
||||||
|
|
||||||
# Enable autologin for agetty(8) on tty1 with runit.
|
# Enable autologin for agetty(8) on tty1 with runit.
|
||||||
if [ -d ${NEWROOT}/etc/runit ]; then
|
if [ -d ${NEWROOT}/etc/runit ]; then
|
||||||
sed -e "s|\-8|& -a $USERNAME|g" -i ${NEWROOT}/etc/sv/agetty-tty1/run
|
sed "s|agetty|& -a $USERNAME|" -i ${NEWROOT}/etc/sv/agetty-tty1/run
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable autologin for agetty(8) on tty1 with systemd.
|
# Enable autologin for agetty(8) on tty1 with systemd.
|
||||||
|
|
Loading…
Reference in New Issue