# XXX fixme : when creating a 32bits VM we need to call linux32 as appropriate...s
-DEFAULT_FCDISTRO=f23
+DEFAULT_FCDISTRO=f24
DEFAULT_PLDISTRO=lxc
DEFAULT_PERSONALITY=linux64
DEFAULT_MEMORY=3072
case $fcdistro in
f[0-9]*|centos[0-9]*|sl[0-9]*)
echo yum ;;
- wheezy|jessie|precise|trusty|utopic|vivid|wily)
+ wheezy|jessie|precise|trusty|utopic|vivid|wily|xenial)
echo debootstrap ;;
*)
echo Unknown distro $fcdistro ;;
case $fcdistro in
wheezy|jessie)
echo http://ftp2.fr.debian.org/debian/ ;;
- precise|trusty|utopic|vivid|wily)
+ precise|trusty|utopic|vivid|wily|xenial)
# echo http://mir1.ovh.net/ubuntu/ubuntu/ ;;
echo http://www-ftp.lip6.fr/pub/linux/distributions/Ubuntu/archive/ ;;
*) echo unknown distro $fcdistro; exit 1;;
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.00{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 ; }
;;