Subject: Re: bin/21658: interrupting (^C) /etc/rc.d/fsck doesn't stop auto boot
To: ITOH Yasufumi <itohy@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: netbsd-bugs
Date: 05/25/2003 20:41:11
On Sun, May 25, 2003 at 12:41:29AM +0900, ITOH Yasufumi wrote:
| tv@pobox.com writes:
|
| > Does renaming /etc/rc.d/fsck to /etc/rc.d/fsck.sh fix the problem? (This
| > will make the contents of /etc/rc.d/fsck.sh run as direct children of the
| > startup shell.)
|
| Oh, yeah, sort of.
|
| Yes, this allows to stop auto boot by ^C.
| However, "Boot interrupted." is not printed. I'm not sure why....
In etc/rc.d/fsck, try changing
fsck -p
case $?
to
fsck -p
rv=$?
echo "fsck returned $?
case $rv
and then let us known what is printed when you hit ^C.
etc/rc.d/fsck should terminate an autoboot (direct to multi-user)
if fsck fails; that's what stop_boot() in that script is supposed to do.
that way it doesn't need to be installed as fsck.sh.
Luke.