X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=build.sh;h=60a7904c658cf338a31964899ae7deef8cd21384;hb=1092e58fa7aaf995d357858ab842095742108e9b;hp=e383edf2dffaac75b5155c21e9722d2cc2544847;hpb=3fbe3f73c565fa0399158d8e65163001aed7b320;p=vserver-reference.git diff --git a/build.sh b/build.sh index e383edf..60a7904 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.) @@ -164,6 +169,14 @@ postfile=$(pl_locateDistroFile ../build/ ${pldistro} sliceimage.post) # fix sudoers config [ -f ${vref}/etc/sudoers ] && echo -e "\nDefaults\tlogfile=/var/log/sudo\n" >> ${vref}/etc/sudoers +# make sure 32bit slice images have the right yum config in /etc/yum/vars +# this issue showed on a f18 64bits node hosting a f14 32bits sliver +# this workaround probably means the 32bits sliver does not properly run as a 32bits VM +grep -q i386 ${vref}/etc/slicefamily && { + echo i686 > ${vref}/etc/yum/vars/arch + echo i386 > /etc/yum/vars/basearch +} + # cleanup yum remainings rm -rf ${vref}/build ${vref}/longbuildroot