linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] NFS: Make NFS root work again
@ 2007-06-07 16:40 David Howells
  2007-06-07 17:56 ` Peter Staubach
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: David Howells @ 2007-06-07 16:40 UTC (permalink / raw)
  To: torvalds, akpm, trond.myklebust; +Cc: linux-kernel, linux-fsdevel, dhowells

Make NFS root work by creating a "/root" directory to satisfy the mount,
otherwise the path lookup for the mount fails with ENOENT.

Signed-off-by: David Howells <dhowells@redhat.com>
---

 init/do_mounts.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/init/do_mounts.c b/init/do_mounts.c
index 46fe407..967b852 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -270,7 +270,10 @@ static void __init get_fs_names(char *page)
 
 static int __init do_mount_root(char *name, char *fs, int flags, void *data)
 {
-	int err = sys_mount(name, "/root", fs, flags, data);
+	int err;
+
+	sys_mkdir("/root", 0755);
+	err = sys_mount(name, "/root", fs, flags, data);
 	if (err)
 		return err;
 


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-06-18 11:10 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-07 16:40 [PATCH] NFS: Make NFS root work again David Howells
2007-06-07 17:56 ` Peter Staubach
2007-06-07 19:53 ` Andrew Morton
2007-06-16 16:15 ` Andrew Morton
2007-06-16 16:47   ` Trond Myklebust
2007-06-17  3:26   ` Paul Mundt
2007-06-17 18:44   ` Andi Kleen
2007-06-18 11:09 ` David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).