diff --git a/common/startup.c b/common/startup.c index 2b92efc..e59b06d 100644 --- a/common/startup.c +++ b/common/startup.c @@ -51,6 +51,12 @@ 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);