Add noautologin boot option

Fixes systemrescue/systemrescue-sources#189
This commit is contained in:
Marcos Mello 2021-10-06 16:33:35 -03:00
parent c33b6e51d2
commit 08c163345d

View file

@ -57,6 +57,12 @@ do
echo '[[ ! $DISPLAY ]] && [[ ! $SSH_TTY ]] && [[ $XDG_VTNR == 1 ]] && startx' | \
tee -a /root/.bash_profile > /root/.zlogin
;;
# Require authenticated console access
noautologin)
echo "Found option '${curopt}' on the boot command line"
systemctl revert getty@.service serial-getty@.service
;;
esac
done