Comment 7 for bug 1063061

Revision history for this message
Jeremy Kerr (jk-ozlabs) wrote :

Just committed this to sbsigntool, to use the updated mountpoint. v0.5 has this (and only this) change.

commit ab63e31bb8ba8ef4b51b8698cc5e89466e003989
Author: Jeremy Kerr <email address hidden>
Date: Mon Oct 8 12:07:43 2012 +0800

    sbkeysync: change default efivarfs mountpoint to /sys/.../efivars/

    Proposed changes to the kernel will establish /sys/firmware/efi/efivars
    as the canonical mountpoint for the efivars filesystem.

    Signed-off-by: Jeremy Kerr <email address hidden>

diff --git a/NEWS b/NEWS
index b62c90a..786145f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,2 +1,12 @@
+v0.5:
+ sbkeysync's default efivars mountpoint has been moved to
+ /sys/firmware/efi/efivars/. This is to match the proposed Linux kernel
+ patch for efivarfs, which provides this sysfs node for the purpose of
+ mounting efivarfs, and leaving the older ../vars/ interface for legacy
+ applications.
+
+ This default can be overridden using the --efivars-path option to
+ sbkeysync.
+
 v0.1:
        Initial version
diff --git a/src/sbkeysync.c b/src/sbkeysync.c
index d68f675..011004a 100644
--- a/src/sbkeysync.c
+++ b/src/sbkeysync.c
@@ -55,7 +55,7 @@
 #include "fileio.h"
 #include "efivars.h"

-#define EFIVARS_MOUNTPOINT "/sys/firmware/efi/vars"
+#define EFIVARS_MOUNTPOINT "/sys/firmware/efi/efivars"
 #define EFIVARS_FSTYPE 0x6165676C

 #define EFI_IMAGE_SECURITY_DATABASE_GUID \