X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=vserver-reference.spec;h=6988e7d450ca2b6995fb996a8b4fb5142aa8893b;hb=a571dd4f8da90ebfcb88255d99f90c07e0cdfb49;hp=0459f6537c7c98772b2959cdd986a7a2f4707584;hpb=dfb2293f8e156799981459fc30f4259b1c4674b5;p=vserver-reference.git diff --git a/vserver-reference.spec b/vserver-reference.spec index 0459f65..6988e7d 100644 --- a/vserver-reference.spec +++ b/vserver-reference.spec @@ -40,6 +40,9 @@ fi %build %install +# Running as root +export PATH="$PATH:/sbin:/usr/sbin" + # Clean up if grep -q %{installroot}/proc /proc/mounts ; then umount %{installroot}/proc @@ -108,7 +111,7 @@ rpm --root %{installroot} --initdb # XXX Get yum.conf from PlanetLabConf # Install RPMs in reference image -yum \ +yum -c ./yum.conf \ %{?sslcertdir:--sslcertdir=%{sslcertdir}} \ --installroot=%{installroot} \ -y groupinstall VServer @@ -131,6 +134,9 @@ if grep -q %{installroot}/dev/pts /proc/mounts ; then fi %clean +# Running as root +export PATH="$PATH:/sbin:/usr/sbin" + # Clean up if grep -q %{installroot}/proc /proc/mounts ; then umount %{installroot}/proc