Skip to content

Commit

Permalink
Merge pull request #4186 from tjjh89017/T6861
Browse files Browse the repository at this point in the history
T6861: op-mode: ignore error code 255 if this UEFI doesn't support secure boot
  • Loading branch information
dmbaturin authored Nov 11, 2024
2 parents ff82bd5 + a48b8fd commit 319b050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/vyos/utils/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,5 @@ def get_secure_boot_state() -> bool:
from vyos.utils.boot import is_uefi_system
if not is_uefi_system():
return False
tmp = cmd('mokutil --sb-state')
tmp = cmd('mokutil --sb-state', expect=[255])
return bool('enabled' in tmp)

0 comments on commit 319b050

Please sign in to comment.