[systemd-bugs] [Bug 77271] systemd-detect-virt and directive ConditionVirtualization wrongly return vm for xen dom0

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 23 07:59:25 PDT 2014


https://bugs.freedesktop.org/show_bug.cgi?id=77271

--- Comment #8 from Thomas Blume <Thomas.Blume at suse.com> ---
Ok, attached the new patch, tested as good as I could.
In domU:

# cat /proc/xen/capabilities
# systemd-detect-virt 
xen-domU
# echo $?
0

# mkdir /tmp/void
# mount -o bind /tmp/void/ /proc/xen/
# cat /proc/xen/capabilities
cat: /proc/xen/capabilities: No such file or directory
# systemd-detect-virt 
xen
# echo $?
0


in dom0:

# cat /proc/xen/capabilities
control_d
# systemd-detect-virt 
xen-dom0
# echo $?
1

# mkdir /tmp/void
# mount -o bind /tmp/void /proc/xen/
# cat /proc/xen/capabilities
cat: /proc/xen/capabilities: No such file or directory
# systemd-detect-virt 
xen
# echo $?
0

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/systemd-bugs/attachments/20140423/6ab55f9f/attachment.html>


More information about the systemd-bugs mailing list