X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lbuild-initvm.sh;h=b269a56887bce01cf5e1b3f304d67a287a975a2a;hb=2c30aabcba453352f29abadd90cac9e76c5f691f;hp=0d22f4915330814a31e2d3f093fb63a3e7c65491;hpb=3d9fa96018fcba38c480d9a17b213d15169b1e7b;p=build.git diff --git a/lbuild-initvm.sh b/lbuild-initvm.sh index 0d22f491..b269a568 100755 --- a/lbuild-initvm.sh +++ b/lbuild-initvm.sh @@ -465,6 +465,11 @@ function setup_lxc() { yum) if [ -z "$IMAGE" ]; then fedora_install $lxc || { echo "failed to install fedora root image"; exit 1 ; } + # this appears to be safer; observed in Jan. 2016 on a f23 host and a f14 cached image + # we were getting this message when attempting the first chroot yum install + # rpmdb: Program version 4.8 doesn't match environment version 5.3 + chroot $(lxcroot $lxc) $personality rm -rf /var/lib/rpm/__db{0,1,2,3,4,5,6,7,8,9} + chroot $(lxcroot $lxc) $personality rpm --rebuilddb fi fedora_configure $lxc || { echo "failed to configure fedora for a container"; exit 1 ; } ;;