Hi, On Thu, Feb 24, 2011 at 02:56:55PM +0800, jida...@jidanni.org wrote: > OK, since nobody knows, then what does recovery mode, > > /boot/grub/grub.cfg: > menuentry 'Debian GNU/Linux, with Linux 2.6.37-1-686 (recovery mode)'
I think this put system to something like runlevel S or 1 > do to the terminal in order to enable interaction after one enters the > root passwd? When system goes though runlevel S, there is some SULOGIN things: $ grep -i login * S02early-readahead: if [ -d /proc/1 ] && [ ! -e /proc/1/loginuid ]; then S08checkroot.sh:[ "$SULOGIN" ] || SULOGIN=no S08checkroot.sh: # Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to S08checkroot.sh: [ "$SULOGIN" = yes ] && sulogin -t 30 $CONSOLE S08checkroot.sh: if ! sulogin $CONSOLE S08checkroot.sh: if ! sulogin $CONSOLE S12checkfs.sh: if ! sulogin $CONSOLE S25bootmisc.sh:[ "$DELAYLOGIN" ] || DELAYLOGIN=yes S25bootmisc.sh: # If login delaying is enabled then create the flag file S25bootmisc.sh: # which prevents logins before startup is complete S25bootmisc.sh: case "$DELAYLOGIN" in S25bootmisc.sh: echo "System bootup in progress - please wait" > /var/lib/initscripts/nologin S25bootmisc.sh: # Create /var/run/utmp so we can login. S25later-readahead: if [ -d /proc/1 ] && [ ! -e /proc/1/loginuid ]; then S26stop-bootlogd-single:# a call to /sbin/sulogin, while runlevel 1 is a call to S26stop-bootlogd-single:# /sbin/sulogin. .... OK, I found S08checkroot.sh: [ "$SULOGIN" = yes ] && sulogin -t 30 $CONSOLE It has comments: # Set SULOGIN in /etc/default/rcS to yes if you want a sulogin to # be spawned from this script *before anything else* with a timeout, # like sysv does. See sulogin(8). Cheers. Osamu -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20110224144146.ga17...@debian.org