lkml.org 
[lkml]   [2017]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v5 2/5] cramfs: make cramfs_physmem usable as root fs
Date
Signed-off-by: Nicolas Pitre <nico@linaro.org>
Tested-by: Chris Brandt <chris.brandt@renesas.com>
---
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.5
\
 
 \ /
  Last update: 2017-10-06 04:46    [W:0.110 / U:18.608 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site