/linuxrc link to /bin/busybox causes booting to fail (sysvinit should be used instead)
Hi,
When booting base-image or minimal-image from a ramdisk, I get errors like the following:
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
init started: BusyBox v1.13.2 (2009-04-03 15:54:42 EDT)
Bad inittab entry at line 5
can't open /dev/si: No such file or directory
can't open /dev/~~: No such file or directory
can't open /dev/l0: No such file or directory
can't open /dev/l1: No such file or directory
can't open /dev/l2: No such file or directory
can't open /dev/l3: No such file or directory
can't open /dev/l4: No such file or directory
can't open /dev/l5: No such file or directory
can't open /dev/l6: No such file or directory
can't open /dev/z6: No such file or directory
can't open /dev/S: No such file or directory
process '/sbin/sulogin' (pid 167) exited. Scheduling for restart. process '/sbin/getty 57600 ttyAM0' (pid 168) exited. Scheduling for restart.
This is because, even though /sbin/init points to /sbin/init.sysvinit, there is also a /linuxrc -> /bin/busybox link, which the kernel uses in preference, causing busybox to run as 'init'. The problem is that busybox init uses a different syntax from sysvinit.
I think this problem might have started when inittab support was added to busybox...
Is there a good reason for that /linuxrc link? And if not, where is it coming from, so that I can remove it?
Thanks!
Quoted 5 lines · David Huggins-Daines
Hi,
When booting base-image or minimal-image from a ramdisk, I get errors like the following:
Quoted 15 lines
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0. init started: BusyBox v1.13.2 (2009-04-03 15:54:42 EDT) Bad inittab entry at line 5
can't open/dev/si: No such file or directory can't open/dev/~~: No such file or directory can't open/dev/l0: No such file or directory can't open/dev/l1: No such file or directory can't open/dev/l2: No such file or directory can't open/dev/l3: No such file or directory can't open/dev/l4: No such file or directory can't open/dev/l5: No such file or directory can't open/dev/l6: No such file or directory can't open/dev/z6: No such file or directory can't open/dev/S: No such file or directory
Usually that's caused by bad bootargs...
Otherwise images boot fine even with /linuxrc pointing to /bin/busybox
Quoted 14 lines
process '
/sbin/sulogin' (pid 167) exited. Scheduling for restart. process '/sbin/getty57600 ttyAM0' (pid 168) exited. Scheduling for restart.This is because, even though
/sbin/initpoints to/sbin/init.sysvinit, there is also a /linuxrc ->/bin/busyboxlink, which the kernel uses in preference, causing busybox to run as 'init'. The problem is that busybox init uses a different syntax from sysvinit.I think this problem might have started when inittab support was added to busybox...
Is there a good reason for that /linuxrc link? And if not, where is it coming from, so that I can remove it?
Signature · 1 line
Denys
Quoted 4 lines · David Huggins-Daines
Hi,
When booting base-image or minimal-image from a ramdisk, I get errors like the following:
Do you have http://cgit.openembedded.net/cgit.cgi?url=openembedded/commit/&id=5261978d6f9600640c1ea4f1393e18772d4f9657 in your OE tree?
regards,
Koen