Skip to content

Commit

Permalink
sbctl: ensure we have efivarfs mounted
Browse files Browse the repository at this point in the history
Fixes: #383

Signed-off-by: Morten Linderud <[email protected]>
  • Loading branch information
Foxboron committed Oct 18, 2024
1 parent bf490ca commit 2524baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sbctl/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down

0 comments on commit 2524baa

Please sign in to comment.