]> git.kernelconcepts.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>
Tue, 13 Dec 2011 06:43:22 +0000 (17:43 +1100)
commitcab54dd514ff585968944eee746d50ac0acc1050
tree273ee1b9816057012a68507ccb712bc7ecda541c
parent30abfea45249fb62de056fd38b1c0d6656863afd
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