Red Hat Bugzilla – Bug 6834
Any user may cause an inteactive startup
Last modified: 2014-03-16 22:11:06 EDT
If somebody does command:
RedHat 6.1, when rebooted, automatically enters in interactive startup
So no process from /etc/rc?.d/S* will be started
and system won't boot up until admin comes and presses N or Y or C on the console
in /etc/rc.d/rc.sysinit it should be removed before /sbin/getkey will be spawned
I think a few last lines from /etc/rc.d/rc.sysinit should be like these:
if [ "$PROMPT" != "no" ]; then
/sbin/getkey i && CONFIRM="yes"
[ "$CONFIRM" = "yes" ] && touch /tmp/confirm || rm -f /tmp/confirm || true
Better solution: MOVE this flag file to NONWORDWRITEABLE directory, like /var/lock,
Robert Luberda <firstname.lastname@example.org>
PS. There's another problem with /tmp/confirm: if admin wants system
to enter interacive startup by pressing key 'I' and /tmp/confirm exists and it's a directory.
moved to /var/run/confirm in initscripts-4.63-1.
There's no need to do the prior removal, as /var/run is
cleaned at each boot.