sbkeysync: add corrected efivars magic
Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
parent
a7577f56b3
commit
951ee95a30
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue