efi: mount efivarfs by default if enabled
Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
46b5a6d652
commit
75889a2900
|
@ -51,6 +51,12 @@ static int mount_root(void)
|
||||||
mount("none", "ramfs", "/", NULL);
|
mount("none", "ramfs", "/", NULL);
|
||||||
mkdir("/dev", 0);
|
mkdir("/dev", 0);
|
||||||
mount("none", "devfs", "/dev", NULL);
|
mount("none", "devfs", "/dev", NULL);
|
||||||
|
|
||||||
|
if (IS_ENABLED(CONFIG_FS_EFIVARFS)) {
|
||||||
|
mkdir("/efivars", 0);
|
||||||
|
mount("none", "efivarfs", "/efivars", NULL);
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
fs_initcall(mount_root);
|
fs_initcall(mount_root);
|
||||||
|
|
Loading…
Reference in New Issue