sbkeysync: add corrected efivars magic

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-11-13 20:22:57 +08:00
parent a7577f56b3
commit 951ee95a30

View file

@ -56,7 +56,8 @@
#include "efivars.h" #include "efivars.h"
#define EFIVARS_MOUNTPOINT "/sys/firmware/efi/efivars" #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 \ #define EFI_IMAGE_SECURITY_DATABASE_GUID \
{ 0xd719b2cb, 0x3d3a, 0x4596, \ { 0xd719b2cb, 0x3d3a, 0x4596, \
@ -533,7 +534,7 @@ static int check_efivars_mount(const char *mountpoint)
if (rc) if (rc)
return -1; return -1;
if (statbuf.f_type != EFIVARS_FSTYPE) if (statbuf.f_type != EFIVARS_FSTYPE && statbuf.f_type != PSTORE_FSTYPE)
return -1; return -1;
return 0; return 0;