dracut/adduser.sh: no need to remove pam_systemd with runit anymore.
This commit is contained in:
parent
1fcbe4e2e9
commit
b54cdb22e7
@ -25,10 +25,9 @@ if [ -f ${NEWROOT}/etc/sudoers ]; then
|
|||||||
echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> ${NEWROOT}/etc/sudoers
|
echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> ${NEWROOT}/etc/sudoers
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable autologin for agetty(8) on tty1 and disable pam_systemd.
|
# 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 -e "s|\-8|& -a $USERNAME|g" -i ${NEWROOT}/etc/sv/agetty-tty1/run
|
||||||
sed -e '/systemd/d' -i ${NEWROOT}/etc/pam.d/*
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Enable autologin for agetty(8) on tty1 with systemd.
|
# Enable autologin for agetty(8) on tty1 with systemd.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user