AutoReqProv: no
BuildRequires: e2fsprogs, yum
+%define debug_package %{nil}
+
%description
This package creates the virtual server (VServer) reference image used
as the installation base for new PlanetLab slivers.
%build
%install
+# Running as root
+export PATH="$PATH:/sbin:/usr/sbin"
+
# Clean up
if grep -q %{installroot}/proc /proc/mounts ; then
umount %{installroot}/proc
# XXX Get yum.conf from PlanetLabConf
# Install RPMs in reference image
-yum \
+yum -c ./yum.conf \
%{?sslcertdir:--sslcertdir=%{sslcertdir}} \
--installroot=%{installroot} \
-y groupinstall VServer
fi
%clean
+# Running as root
+export PATH="$PATH:/sbin:/usr/sbin"
+
# Clean up
if grep -q %{installroot}/proc /proc/mounts ; then
umount %{installroot}/proc