Skip to content

Commit

Permalink
do_mounts: allow UBI root device name
Browse files Browse the repository at this point in the history
Similarly to MTD devices, allow UBI devices.

Signed-off-by: Adrian Hunter <ext-adrian.hunter@nokia.com>
  • Loading branch information
Adrian Hunter authored and Artem Bityutskiy committed Jul 14, 2008
1 parent 4ee6afd commit 2d62f48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion init/do_mounts.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,8 @@ void __init prepare_namespace(void)

if (saved_root_name[0]) {
root_device_name = saved_root_name;
if (!strncmp(root_device_name, "mtd", 3)) {
if (!strncmp(root_device_name, "mtd", 3) ||
!strncmp(root_device_name, "ubi", 3)) {
mount_block_root(root_device_name, root_mountflags);
goto out;
}
Expand Down

0 comments on commit 2d62f48

Please sign in to comment.