[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1411819722-10684-1-git-send-email-hristo@venev.name>
Date: Sat, 27 Sep 2014 15:08:42 +0300
From: hristo@...sto.venev.name
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, Hristo Venev <hristo@...ev.name>
Subject: [PATCH] init: Mount devtmpfs before mounting root.
btrfs may require /dev in case there are multiple devices
Example:
root=/dev/sda1 rootfstype=btrfs rootflags=device=/dev/sdb1
---
init/do_mounts.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 82f2288..9612958 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -527,8 +527,10 @@ void __init mount_root(void)
}
#endif
#ifdef CONFIG_BLOCK
+ sys_mount(NULL, "/dev", "devtmpfs", 0, NULL);
create_dev("/dev/root", ROOT_DEV);
mount_block_root("/dev/root", root_mountflags);
+ sys_umount("/dev", 0);
#endif
}
--
2.1.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists