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;