]> 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>
Tue, 20 Mar 2012 23:57:27 +0000 (10:57 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 3 Apr 2012 03:10:15 +0000 (13:10 +1000)
commitf3011da1d7bd19499b41f9d59cdac8a81cee9829
tree05f30a1a1dffbe9d0361e813ebfe3faae0056fa4
parentd6a1396f06e33b06d19df55a8ad1092072068aa1
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