9
0
Fork 0

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:
Lucas Stach 2014-12-08 14:42:39 +01:00 committed by Sascha Hauer
parent 46b5a6d652
commit 75889a2900
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ static int mount_root(void)
mount("none", "ramfs", "/", NULL);
mkdir("/dev", 0);
mount("none", "devfs", "/dev", NULL);
if (IS_ENABLED(CONFIG_FS_EFIVARFS)) {
mkdir("/efivars", 0);
mount("none", "efivarfs", "/efivars", NULL);
}
return 0;
}
fs_initcall(mount_root);