From 951ee95a301674c046f55330cd7460e1314deff2 Mon Sep 17 00:00:00 2001 From: Jeremy Kerr Date: Tue, 13 Nov 2012 20:22:57 +0800 Subject: [PATCH] sbkeysync: add corrected efivars magic Signed-off-by: Jeremy Kerr --- src/sbkeysync.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sbkeysync.c b/src/sbkeysync.c index 011004a..a63d3b8 100644 --- a/src/sbkeysync.c +++ b/src/sbkeysync.c @@ -56,7 +56,8 @@ #include "efivars.h" #define EFIVARS_MOUNTPOINT "/sys/firmware/efi/efivars" -#define EFIVARS_FSTYPE 0x6165676C +#define PSTORE_FSTYPE 0x6165676C +#define EFIVARS_FSTYPE 0xde5e81e4 #define EFI_IMAGE_SECURITY_DATABASE_GUID \ { 0xd719b2cb, 0x3d3a, 0x4596, \ @@ -533,7 +534,7 @@ static int check_efivars_mount(const char *mountpoint) if (rc) return -1; - if (statbuf.f_type != EFIVARS_FSTYPE) + if (statbuf.f_type != EFIVARS_FSTYPE && statbuf.f_type != PSTORE_FSTYPE) return -1; return 0;