Merge branch 'noautologin' into 'master'

Add noautologin boot option

Closes #189

See merge request systemrescue/systemrescue-sources!111
This commit is contained in:
Francois Dupoux 2021-10-06 19:59:38 +00:00
commit 556be2a7a0

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