]> 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>
Fri, 2 Dec 2011 03:12:49 +0000 (14:12 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 6 Dec 2011 04:05:38 +0000 (15:05 +1100)
commit2efb6964eafa54f2ffb42e548daf86b26261d8ff
treec0b2f60d6598af690e5f1f8c16cbfa45956c7433
parent0027dc4a9c6d666d2d1cf5cec2ec39f952e8841c
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