[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201207184835.63538-2-alex_y_xu@yahoo.ca>
Date: Mon, 7 Dec 2020 13:48:34 -0500
From: "Alex Xu (Hello71)" <alex_y_xu@...oo.ca>
To: "Alex Xu (Hello71)" <alex_y_xu@...oo.ca>,
Dominik Brodowski <linux@...inikbrodowski.net>,
Song Liu <song@...nel.org>, "Theodore Ts'o" <tytso@....edu>,
Jens Axboe <axboe@...nel.dk>, linux-kernel@...r.kernel.org
Subject: [PATCH 2/3] init: remove special-case for mtd/ubi
This should be handled by the fallback after trying to resolve it.
Signed-off-by: Alex Xu (Hello71) <alex_y_xu@...oo.ca>
---
init/do_mounts.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/init/do_mounts.c b/init/do_mounts.c
index 8aa38ec0bfec..a2a273b9866f 100644
--- a/init/do_mounts.c
+++ b/init/do_mounts.c
@@ -603,11 +603,6 @@ void __init prepare_namespace(void)
if (saved_root_name[0]) {
root_device_name = saved_root_name;
- if (!strncmp(root_device_name, "mtd", 3) ||
- !strncmp(root_device_name, "ubi", 3)) {
- mount_block_root(root_device_name, root_mountflags);
- goto out;
- }
ROOT_DEV = name_to_dev_t(root_device_name);
if (strncmp(root_device_name, "/dev/", 5) == 0)
root_device_name += 5;
--
2.29.2
Powered by blists - more mailing lists