From 2524baab3ff273fc8cfd73e66f0fddc0b1d3e0c5 Mon Sep 17 00:00:00 2001 From: Morten Linderud Date: Fri, 18 Oct 2024 21:27:48 +0200 Subject: [PATCH] sbctl: ensure we have efivarfs mounted Fixes: https://github.com/Foxboron/sbctl/issues/383 Signed-off-by: Morten Linderud --- cmd/sbctl/status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sbctl/status.go b/cmd/sbctl/status.go index 6f9dd29..e0bc3ce 100644 --- a/cmd/sbctl/status.go +++ b/cmd/sbctl/status.go @@ -128,7 +128,7 @@ func RunStatus(cmd *cobra.Command, args []string) error { } stat := NewStatus() - if _, err := state.Fs.Stat("/sys/firmware/efi/efivars"); os.IsNotExist(err) { + if _, err := state.Fs.Stat("/sys/firmware/efi/efivars/SetupMode-8be4df61-93ca-11d2-aa0d-00e098032b8c"); os.IsNotExist(err) { return fmt.Errorf("system is not booted with UEFI") }