X-Git-Url: http://git.onelab.eu/?p=vserver-reference.git;a=blobdiff_plain;f=build.sh;h=53df7543df9ffd4c842880074b4f0ae4f843b229;hp=e383edf2dffaac75b5155c21e9722d2cc2544847;hb=HEAD;hpb=3fbe3f73c565fa0399158d8e65163001aed7b320 diff --git a/build.sh b/build.sh index e383edf..53df754 100755 --- a/build.sh +++ b/build.sh @@ -101,6 +101,11 @@ systemslice_count=$(ls ../build/config.${pldistro}/sliceimage-*.pkgs 2> /dev/nul echo " * WARNING image $systemslice - yum groupinstall $yum_group failed" done + # running pip or gem requires connectivity, and DNS + # so we expose the build-vm's /etc/resolv.conf to the current vdir + mkdir -p ${vdir}/etc + cp /etc/resolv.conf ${vdir}/etc + # this requires pip to be available in sliceimage at that point # fedora and debian -> python-pip # on fedora the command is called pip-python (sigh.)