]> git.karo-electronics.de Git - karo-tx-linux.git/commit
init/do_mounts.c: create /root if it does not exist
authorYanHong <tempname2@hotmail.com>
Thu, 8 Dec 2011 04:42:27 +0000 (15:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 14 Dec 2011 05:52:00 +0000 (16:52 +1100)
commitccef1264e0b00c655b944e5266c4297ac87a9445
tree47e2a7b652f3ab37db6bcddb8f30fb9ed79a0358
parentd5065d5e64354ba8ca1c3c54ca97b22cbd6e7c10
init/do_mounts.c: create /root if it does not exist

If someone supplies an initramfs without /root in it, and we fail to
execute rdinit, we will try to mount root device and fail, for the mount
point does not exits.

But we get error message "VFS: Cannot open root device".  It's confusing.

We can give a more detailed error message, or we can go further: if /root
does not exit, create it.

Signed-off-by: YanHong <tempname2@hotmail.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Woody Suwalski <terraluna977@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
init/do_mounts.c