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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to