Skip to content

Commit 2d62f48

Browse files
Adrian HunterArtem Bityutskiy
authored andcommitted
do_mounts: allow UBI root device name
Similarly to MTD devices, allow UBI devices. Signed-off-by: Adrian Hunter <[email protected]>
1 parent 4ee6afd commit 2d62f48

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

init/do_mounts.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ void __init prepare_namespace(void)
372372

373373
if (saved_root_name[0]) {
374374
root_device_name = saved_root_name;
375-
if (!strncmp(root_device_name, "mtd", 3)) {
375+
if (!strncmp(root_device_name, "mtd", 3) ||
376+
!strncmp(root_device_name, "ubi", 3)) {
376377
mount_block_root(root_device_name, root_mountflags);
377378
goto out;
378379
}

0 commit comments

Comments
 (0)