*/
void __init prepare_namespace(void)
{
- char *root_device_name;
-
if (root_delay) {
printk(KERN_INFO "Waiting %d sec before mounting root device...\n",
root_delay);
md_run_setup();
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_root_generic(root_device_name, root_device_name,
+ if (!strncmp(saved_root_name, "mtd", 3) ||
+ !strncmp(saved_root_name, "ubi", 3)) {
+ mount_root_generic(saved_root_name, saved_root_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;
+ ROOT_DEV = name_to_dev_t(saved_root_name);
}
- if (initrd_load(root_device_name))
+ if (initrd_load(saved_root_name))
goto out;
/* wait for any asynchronous scanning to complete */
async_synchronize_full();
}
- mount_root(root_device_name);
+ mount_root(saved_root_name);
out:
devtmpfs_mount();
init_mount(".", "/", NULL, MS_MOVE, NULL);