virt-what: detect systemd-nspawn master
authorJochen Kellner <jochen@jochen.org>
Mon, 9 Sep 2024 17:18:42 +0000 (19:18 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 10 Sep 2024 07:49:05 +0000 (08:49 +0100)
commit5315e2b57b2df54b294893adc5185c474985bcc2
treeceb1459bb073afcb50bd796ea521f72b76002383
parent4b4207bf011ad0a20150a85ab9fcf9978a5f571d
virt-what: detect systemd-nspawn

The following patch adds detection of systemd-nspawn containers to
virt-what for me.  It is inspired by systemd-detect-virt which also
looks at /proc/1/environ.
12 files changed:
configure.ac
tests/nspawn/Makefile.am [new file with mode: 0644]
tests/nspawn/proc/1/environ [new file with mode: 0644]
tests/nspawn/proc/cpuinfo [new file with mode: 0644]
tests/nspawn/proc/self/status [new file with mode: 0644]
tests/nspawn/run/host/container-manager [new file with mode: 0755]
tests/nspawn/sbin/dmidecode [new file with mode: 0755]
tests/nspawn/sbin/uname [new file with mode: 0755]
tests/nspawn/sbin/virt-what-cpuid-helper [new file with mode: 0755]
tests/nspawn/test.sh [new file with mode: 0755]
virt-what.in
virt-what.pod