summaryrefslogtreecommitdiff
path: root/src/migration-scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-09-01 08:07:22 +0000
committerChristian Breunig <christian@breunig.cc>2026-09-01 17:28:54 +0200
commitdd7962cdcfb60ad6e57a5b041d91e0d1707d7e96 (patch)
tree1334e92284980b456bdcafb8125c6ac4c9733d9f /src/migration-scripts
parent322db61ed0b8c2fa69a178a4ecc14a8d356cb09c (diff)
downloadvyos-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 'src/migration-scripts')
0 files changed, 0 insertions, 0 deletions