Subject: Re: misc/29822 interrupting fsck doesn't go single-user
To: None <gnats-bugs@NetBSD.org>
From: Arnaud Lacombe <lacombar@gmail.com>
List: netbsd-bugs
Date: 10/03/2006 01:16:52
I seems that ^C terminates both fsck and the shell script. The
following patch should correct the problem (work for me under qemu):
--- fsck.orig 2006-10-03 01:06:55.000000000 -0400
+++ fsck 2006-10-03 01:14:29.000000000 -0400
@@ -28,6 +28,9 @@
if [ -e /fastboot ]; then
echo "Fast boot: skipping disk checks."
else
+ # Ignore SIGINT to let the script breaks into single user
+ # mode if interrupted (see misc/29822)
+ trap : 2
# During fsck ignore SIGQUIT
trap : 3