Files
systemd/src/basic
Zbigniew Jędrzejewski-Szmek ef2a48aa01 basic/virt: provide a nicer message is /proc/cpuinfo is not available
$ sudo systemd-run -p RootDirectory=/usr -E LD_LIBRARY_PATH=/lib/systemd/ -E SYSTEMD_LOG_LEVEL=debug /bin/systemd-detect-virt

Before
systemd-detect-virt[18498]: No virtualization found in DMI
systemd-detect-virt[18498]: No virtualization found in CPUID
systemd-detect-virt[18498]: Virtualization XEN not found, /proc/xen does not exist
systemd-detect-virt[18498]: This platform does not support /proc/device-tree
systemd-detect-virt[18498]: Failed to check for virtualization: No such file or directory

The first four lines are at debug level, so the user would only see that last
one usually, which is not very enlightening.

This now becomes:
systemd-detect-virt[21172]: No virtualization found in DMI
systemd-detect-virt[21172]: No virtualization found in CPUID
systemd-detect-virt[21172]: Virtualization XEN not found, /proc/xen does not exist
systemd-detect-virt[21172]: This platform does not support /proc/device-tree
systemd-detect-virt[21172]: /proc/cpuinfo not found, assuming no UML virtualization.
systemd-detect-virt[21172]: This platform does not support /proc/sysinfo
systemd-detect-virt[21172]: Found VM virtualization none
systemd-detect-virt[21172]: none

We do more checks, which is good too.
2018-02-23 20:04:29 +01:00
..
2018-01-11 14:44:31 +01:00
2017-11-28 20:21:15 +09:00
2017-11-28 20:21:15 +09:00
2018-01-12 14:44:45 +01:00
2018-01-11 14:44:31 +01:00
2017-11-30 20:43:25 +01:00
2018-01-11 14:44:31 +01:00
2018-02-05 09:55:03 +01:00
2018-02-05 09:55:03 +01:00
2018-01-11 14:44:31 +01:00
2018-01-27 13:11:50 -08:00
2018-01-11 14:44:31 +01:00
2018-02-19 15:18:54 +01:00
2018-01-11 14:44:31 +01:00
2017-12-15 14:57:07 +01:00
2018-01-11 14:44:31 +01:00
2018-02-22 15:29:34 +01:00