[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170811192252.19062-3-nicolas.pitre@linaro.org>
Date: Fri, 11 Aug 2017 15:22:49 -0400
From: Nicolas Pitre <nicolas.pitre@...aro.org>
To: Alexander Viro <viro@...iv.linux.org.uk>
Cc: linux-fsdevel@...r.kernel.org, linux-embedded@...r.kernel.org,
linux-kernel@...r.kernel.org,
Chris Brandt <Chris.Brandt@...esas.com>
Subject: [PATCH 2/5] cramfs: make cramfs_physmem usable as root fs
Signed-off-by: Nicolas Pitre <nico@...aro.org>
---
init/do_mounts.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/init/do_mounts.c b/init/do_mounts.c
index c2de5104aa..43b5817f60 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -556,6 +556,14 @@ void __init prepare_namespace(void)
ssleep(root_delay);
}
+ if (IS_ENABLED(CONFIG_CRAMFS_PHYSMEM) && root_fs_names &&
+ !strcmp(root_fs_names, "cramfs_physmem")) {
+ int err = do_mount_root("cramfs", "cramfs_physmem",
+ root_mountflags, root_mount_data);
+ if (!err)
+ goto out;
+ }
+
/*
* wait for the known devices to complete their probing
*
--
2.9.4
Powered by blists - more mailing lists