Subject: Re: ^C in fsck (segue from tech-kern)
To: None <tech-userlevel@NetBSD.org>
From: Alan Barrett <apb@cequrux.com>
List: tech-userlevel
Date: 04/04/2007 22:37:10
On Wed, 04 Apr 2007, der Mouse wrote:
> Okay, so it's supposed to work in 3.1; I'll work on figuring out why it
> doesn't.  Offhand, it looks as though stop_boot just kills the shell
> running the fsck script, not the shell running /etc/rc - I suspect it
> might work if I set rc_fast_and_loose.

That sounds plausible.  Perhaps this patch to /etc/rc would help:

Index: src/etc/rc
===================================================================
--- rc	4 Jan 2003 15:27:43 -0000	1.162
+++ rc	4 Apr 2007 20:36:04 -0000
@@ -40,7 +40,7 @@
 files=$(rcorder -s nostart ${rc_rcorder_flags} /etc/rc.d/*)
 
 for _rc_elem in $files; do
-	run_rc_script $_rc_elem start
+	run_rc_script $_rc_elem start || exit 1
 done
 
 date


--apb (Alan Barrett)