"exec /sbin/init" does not use inittab
Alexander Kriegisch
Alexander at Kriegisch.name
Thu Oct 11 15:11:16 UTC 2007
Hi!
I just learned that I am stupid the hard way:
> I use kernel_args init=/my/script on my embedded platform with BB
> 1.7.2. Thus, my Ash shell script (sets up an NFS root) replaces init,
> but explicitly calls it when done:
>> exec /sbin/init
Actually my code was
> exec /sbin/init >/dev/console 2>&1
but /dev/console was still a normal file on my NFS root, because
makedevs had not run yet. Thus, the output went to that file instead of
to my serial console. Doh! #-)
Forgive me, init does exactly what it is supposed to.
--
Alexander Kriegisch
More information about the busybox
mailing list