Skip to contentSkip to conversation

systemd: mount the EFI variable filesystem

PATCH New Lee, Chun-Yi 1 participant 1 message Oct 25, 2012 EFI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 systemd: mount the EFI variable filesystem

Add efivarfs to the mount_table in mount-setup.c, so the EFI variable filesystem will be mounted when systemd executed.

The EFI variable filesystem will merge in v3.7 or v3.8 linux kernel.

Cc Kay Sievers <[email protected]>
Cc Lennart Poettering <[email protected]>
Cc Mantas MikulÄ—nas <[email protected]>
Cc Zbigniew JÄ™drzejewski-Szmek <zbyszek-wrcVdnn0TatmR6Xm/[email protected]>
Cc Matt Fleming <[email protected]>
Cc Jeremy Kerr <[email protected]>
Cc Matthew Garrett <[email protected]>
---
 src/core/kmod-setup.c  |    1 +
 src/core/mount-setup.c |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
src/core/kmod-setup.c +1 -0
index cc2a2d9..14a4778 100644
@@ -33,6 +33,7 @@
 static const char * const kmod_table[] = {
         "autofs4", "/sys/class/misc/autofs",
         "ipv6",    "/sys/module/ipv6",
+	"efivarfs", "/sys/firmware/efi/efivars",
         "unix",    "/proc/net/unix"
 };
 
src/core/mount-setup.c +1 -0
index 0fd112f..8ce4ddc 100644
@@ -66,6 +66,7 @@ static const MountPoint mount_table[] = {
         { "sysfs",    "/sys",                   "sysfs",    NULL,                MS_NOSUID|MS_NOEXEC|MS_NODEV,                true,  true  },
         { "devtmpfs", "/dev",                   "devtmpfs", "mode=755",          MS_NOSUID|MS_STRICTATIME,                    true,  true  },
         { "securityfs", "/sys/kernel/security", "securityfs", NULL,              MS_NOSUID|MS_NOEXEC|MS_NODEV,                false, false },
+	{ "efivarfs", "/sys/firmware/efi/efivars", "efivarfs", NULL,		 MS_NOSUID|MS_NOEXEC|MS_NODEV,                false, false },
         { "tmpfs",    "/dev/shm",               "tmpfs",    "mode=1777",         MS_NOSUID|MS_NODEV|MS_STRICTATIME,           true,  true  },
         { "devpts",   "/dev/pts",               "devpts",   "mode=620,gid=" STRINGIFY(TTY_GID), MS_NOSUID|MS_NOEXEC,          false, true  },
         { "tmpfs",    "/run",                   "tmpfs",    "mode=755",          MS_NOSUID|MS_NODEV|MS_STRICTATIME,           true,  true  },
Signature · 1 line
1.6.0.2