diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-09-01 08:07:22 +0000 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-09-01 17:28:54 +0200 |
| commit | dd7962cdcfb60ad6e57a5b041d91e0d1707d7e96 (patch) | |
| tree | 1334e92284980b456bdcafb8125c6ac4c9733d9f /scripts | |
| parent | 322db61ed0b8c2fa69a178a4ecc14a8d356cb09c (diff) | |
| download | vyos-1x-dd7962cdcfb60ad6e57a5b041d91e0d1707d7e96.tar.gz vyos-1x-dd7962cdcfb60ad6e57a5b041d91e0d1707d7e96.zip | |
op-mode: T9269: report Secure Boot as "n/a (container)"
A container is not booted by any firmware, so neither the UEFI nor the BIOS
wording applies. Worse, is_uefi_system() probes /sys/firmware/efi which a
container inherits from its host, thus a container on a UEFI host reported
the Secure Boot state of that host.
Check is_running_as_container() first and report "n/a (container)", leaving
the UEFI and BIOS detection untouched for everything else.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
