X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lbuild-nightly.sh;h=0b183128585d30f94952d34867a01e4e6e81ca3a;hb=d0476ef6bd964bbb14bc0a9b64f2b789a70bf31e;hp=1eb39c8b1556c54af77f1d2de7252556d5656ee5;hpb=8a656cc4218a687de61bc4543203a5c56f6dd093;p=build.git diff --git a/lbuild-nightly.sh b/lbuild-nightly.sh index 1eb39c8b..0b183128 100755 --- a/lbuild-nightly.sh +++ b/lbuild-nightly.sh @@ -11,7 +11,7 @@ COMMAND=$(basename $0) export PATH=$PATH:/bin:/sbin # default values, tunable with command-line options -DEFAULT_FCDISTRO=f20 +DEFAULT_FCDISTRO=f27 DEFAULT_PLDISTRO=lxc DEFAULT_PERSONALITY=linux64 DEFAULT_MAILDEST="build at onelab.eu" @@ -52,6 +52,20 @@ function logfile () { echo /vservers/$slice.log.txt } +######################################## +# workaround for broken lxc-enter-namespace +# 1st version was relying on virsh net-dhcp-leases +# however this was too fragile, would not work for fedora14 containers +# WARNING: this code is duplicated in lbuild-initvm.sh +function guest_ipv4() { + lxc=$1; shift + + mac=$(virsh -c lxc:/// domiflist $lxc | egrep 'network|bridge' | awk '{print $5;}') + # sanity check + [ -z "$mac" ] && return 0 + arp -en | grep "$mac" | awk '{print $1;}' +} + # wrap a quick summary of suspicious stuff # this is to focus on installation that go wrong # use with care, a *lot* of other things can go bad as well