Source0: http://people.redhat.com/~rjones/virt-what/files/%{name}-%{version}.tar.gz
# Source0-md5: 28d3be1d8981e7fd83c012ebf0d95bb1
Patch0: bashisms.patch
+Patch1: vserver-type.patch
URL: http://people.redhat.com/~rjones/virt-what/
# This is provided by the build root, but we make it explicit
# anyway in case this was dropped from the build root in future.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
%build
%configure
--- /dev/null
+--- virt-what-1.13/virt-what.in 2013-09-01 00:35:37.865167616 +0300
++++ virt-what-1.13/virt-what.in 2013-09-01 00:40:26.000000000 +0300
+@@ -147,6 +147,11 @@
+ # Check for Linux-VServer
+ if cat "${root}/proc/self/status" | grep -q "VxID: [0-9]*"; then
+ echo linux_vserver
++ if grep -q "VxID: 0$" "${root}/proc/self/status"; then
++ echo linux_vserver_host
++ else
++ echo linux_vserver_guest
++ fi
+ fi
+
+ # Check for UML.