kumquat-buildroot/fs
Thomas Petazzoni 10a130f91e initramfs/init: make sure that 0, 1, 2 fds are available
As the kernel doesn't automatically mount devtmpfs when an initramfs
is used, commit 424888e474 has
introduced a small wrapper script that mounts devtmpfs before starting
the real init.

Unfortunately, the problem is that in this case, the init process runs
without any 0, 1 and 2 file descriptors, so none of the
messages/errors printed by the various initialization scripts can be
seen. This is due to the fact the init process relies on 0, 1 and 2
being opened by the kernel before init is started. However, as
/dev/console isn't present on the filesystem at the time the kernel
tries to open the console to create the 0, 1 and 2 file descriptors,
the kernel fails on this and prints the famous "Warning: unable to
open an initial console".

The proposed workaround is to actually open 0, 1 and 2 to /dev/console
in the wrapper script, right after mounting the devtmpfs filesystem,
and before starting the real init. The "Warning" from the kernel is
still shown, but at least the messages from the init scripts are
visible.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
2011-08-04 21:52:21 +02:00
..
cloop Move all filesystem generation code to fs/ 2010-04-09 11:04:36 +02:00
cpio fs/*/Config.in: remove useless configuration comments 2010-04-09 11:04:36 +02:00
cramfs cramfs/jffs2: use the new ROOTFS_DEVICE_TABLE variable 2010-04-17 04:36:23 +02:00
ext2 fs/ext2: remove redundant BR2_TARGET_ROOTFS_EXT2_SQUASH option 2011-01-14 11:15:28 +01:00
initramfs initramfs/init: make sure that 0, 1, 2 fds are available 2011-08-04 21:52:21 +02:00
iso9660 iso9660: fix build after linux package change 2011-07-27 23:26:36 +02:00
jffs2 sh: Fix Buildroot sh targets to match gnuconfig targets 2011-07-18 23:26:12 +02:00
romfs Move all filesystem generation code to fs/ 2010-04-09 11:04:36 +02:00
skeleton fs/skeleton: allow rootfs not to be remounted read-write 2011-07-10 22:44:24 +02:00
squashfs squashfs: re-add legacy lzma support 2011-03-05 15:04:03 +01:00
tar fs/tar: enable by default 2011-01-14 11:03:49 +01:00
ubifs ubifs: Add UBI image generation support. 2011-01-11 22:39:05 +01:00
common.mk System config: split static-dev device table setting into seperate option 2011-07-25 00:09:33 +02:00
Config.in Move rootfs content options under system configuration 2011-05-12 23:40:05 +02:00