]> xenbits.xensource.com Git - xentesttools/bootstrap.git/commit
rcS: Fix the annoying "init: starting pid XYZ, tty '/dev/hvc0': '/bin/sh, not found"
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Jul 2013 17:49:36 +0000 (13:49 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 19 Jul 2013 17:52:00 +0000 (13:52 -0400)
commit751bc4fcb95067293af1bfb704aac740b7b8e6bf
tree1a205d6a130ab0fd3702c87c6ad3b1fa1807a5c7
parentf0588c8bb74f3c4a0a5e5e42c47d426ba85c4a36
rcS: Fix the annoying "init: starting pid XYZ, tty '/dev/hvc0': '/bin/sh, not found"

The reason the /etc/inittab was not re-read (even
thought we did an kill -1 1 within this startup
script) is b/c:

(from busybox/init/init.c)
/*
 * NB: while SYSINIT/WAIT/ONCE are being processed,
 * SIGHUP ("reread /etc/inittab") will be ignored.
 * Rationale: it would be ambiguous whether SYSINIT/WAIT/ONCE
 * need to be rerun or not.
 */

and init.d/rcS is SYSINIT - so no SIGHUP can be done as
that is running. As such we just spawn a nohup subprocess that will
do it for us.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
root_image/etc/init.d/rcS
root_image/etc/inittab