Subject: Re: misc/29822 interrupting fsck doesn't go single-user
To: None <misc-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Arnaud Lacombe <lacombar@gmail.com>
List: netbsd-bugs
Date: 10/03/2006 05:20:02
The following reply was made to PR misc/29822; it has been noted by GNATS.
From: "Arnaud Lacombe" <lacombar@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: netbsd-bugs@netbsd.org
Subject: Re: misc/29822 interrupting fsck doesn't go single-user
Date: Tue, 3 Oct 2006 01:16:52 -0400
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