[systemd-devel] [PATCH] systemd: mount the EFI variable filesystem
Lee, Chun-Yi
joeyli.kernel at gmail.com
Fri Oct 26 20:23:22 PDT 2012
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 <kay at vrfy.org>
Cc: Lennart Poettering <lennart at poettering.net>
Cc: Mantas MikulÄnas <grawity at gmail.com>
Cc: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Cc: Matt Fleming <matt.fleming at intel.com>
Cc: Jeremy Kerr <jeremy.kerr at canonical.com>
Cc: Matthew Garrett <mjg at redhat.com>
Signed-off-by: Lee, Chun-Yi <jlee at suse.com>
---
src/core/kmod-setup.c | 1 +
src/core/mount-setup.c | 1 +
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/core/kmod-setup.c b/src/core/kmod-setup.c
index cc2a2d9..14a4778 100644
--- a/src/core/kmod-setup.c
+++ b/src/core/kmod-setup.c
@@ -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"
};
diff --git a/src/core/mount-setup.c b/src/core/mount-setup.c
index 0fd112f..8ce4ddc 100644
--- a/src/core/mount-setup.c
+++ b/src/core/mount-setup.c
@@ -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 },
--
1.6.0.2
More information about the systemd-devel
mailing list