summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-09-01 09:39:44 +0200
committerChristian Breunig <christian@breunig.cc>2026-09-01 17:28:52 +0200
commit322db61ed0b8c2fa69a178a4ecc14a8d356cb09c (patch)
tree85adb6ba4371b7b5645eec9323b4749a762838df /scripts
parente94f0e47d742f3c8f228bf21907954008ade7ba0 (diff)
downloadvyos-1x-322db61ed0b8c2fa69a178a4ecc14a8d356cb09c.tar.gz
vyos-1x-322db61ed0b8c2fa69a178a4ecc14a8d356cb09c.zip
version: T9269: report "container" as system type
A container shares the Kernel with its host and inherits its DMI and CPUID data, thus hvinfo reports the hypervisor of the host system - a VyOS container on a KVM host was described as "KVM guest". Check is_running_as_container() first and report "container", otherwise fall back to hvinfo as before. Note that boot_via and the hardware vendor, model, serial and UUID fields are still derived from the host.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions