use rpm --root instead of chroot rpm, as resolv.conf is not set up in the slice image
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 May 2015 08:08:29 +0000 (10:08 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 28 May 2015 08:08:29 +0000 (10:08 +0200)
config.planetlab/sliceimage.post

index 45cbd3b..ab496e4 100644 (file)
@@ -49,7 +49,7 @@ rm -f ${vdir}/etc/event.d/tty[23456]
 # use fedora's archive, and other yum-related issues
 if [[ "$vdir" =~ .*f14.* ]] ; then
     echo "* sliceimage.post: rectifying fedora14 slice image with fedora-release-14-2.noarch.rpm"
-    chroot $vdir rpm -U http://mirror.onelab.eu/third-party/fedora-release-14-2.noarch.rpm
+    rpm --root=$vdir -U http://mirror.onelab.eu/third-party/fedora-release-14-2.noarch.rpm
 fi
 
 cd -