[PATCH 10/10] efi: mount efivarfs by default if enabled
Lucas Stach
l.stach at pengutronix.de
Tue Nov 4 01:42:56 PST 2014
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
common/startup.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/common/startup.c b/common/startup.c
index ceb597b0ebba..14d669a4ff42 100644
--- a/common/startup.c
+++ b/common/startup.c
@@ -50,6 +50,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);
--
2.1.1
More information about the barebox
mailing list