UBUNTU: SAUCE: Clear Linux: init: do_mounts: recreate /dev/root

Rootfs shows as is mounted in /dev/root, but this devices is not present in
/dev directory.

Signed-off-by: Miguel Bernal Marin <miguel.bernal.marin@linux.intel.com>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
This commit is contained in:
Miguel Bernal Marin
2015-11-20 14:01:26 -06:00
committed by Paolo Pisati
parent 0ed44f80e4
commit 98ce614e18
+9
View File
@@ -461,6 +461,8 @@ static dev_t __init parse_root_device(char *root_device_name)
*/
void __init prepare_namespace(void)
{
int err;
if (root_delay) {
printk(KERN_INFO "Waiting %d sec before mounting root device...\n",
root_delay);
@@ -491,6 +493,13 @@ out:
devtmpfs_mount();
init_mount(".", "/", NULL, MS_MOVE, NULL);
init_chroot(".");
#ifdef CONFIG_BLOCK
/* recreate the /dev/root */
err = create_dev("/dev/root", ROOT_DEV);
if (err < 0)
pr_emerg("Failed to create /dev/root: %d\n", err);
#endif
}
static bool is_tmpfs;