IMHO, introducing "systemd-detect-virt" in sos/plugins/systemd.py should work 
just fine.
and if no virt nor container is type is found, 

Worst case the content of 
"/path_to_sosreport/sos_commands/systemd/systemd-detect-virt" will be 'none' if 
:
- sosreport is run on Physical server
- sosreport isn't able to identify the container/VM type.

Dominique, do you want to take care of submitting this trivial change to
github ?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1659498

Title:
  sosreport Should Collect the Output of systemd-detect-virt(1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sosreport/+bug/1659498/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to