# XXX fixme : when creating a 32bits VM we need to call linux32 as appropriate...s
-DEFAULT_FCDISTRO=f21
+DEFAULT_FCDISTRO=f23
DEFAULT_PLDISTRO=lxc
DEFAULT_PERSONALITY=linux64
-DEFAULT_MEMORY=2048
+DEFAULT_MEMORY=3072
##########
# constant
function package_method () {
fcdistro=$1; shift
case $fcdistro in
- f[0-9]*|centos[0-9]*|sl[0-9]*) echo yum ;;
- squeeze|wheezy|jessie|oneiric|precise|quantal|raring|saucy|trusty|utopic|vivid) echo debootstrap ;;
- *) echo Unknown distro $fcdistro ;;
+ f[0-9]*|centos[0-9]*|sl[0-9]*)
+ echo yum ;;
+ wheezy|jessie|precise|trusty|utopic|vivid|wily)
+ echo debootstrap ;;
+ *)
+ echo Unknown distro $fcdistro ;;
esac
}
fedora_download $cache || { echo "Failed to download 'fedora base'"; return 1; }
else
echo "Updating cache $cache/rootfs ..."
- if ! yum --installroot $cache/rootfs -y --nogpgcheck update ; then
+ if ! yum --installroot $cache/rootfs --releasever $release -y --nogpgcheck update ; then
echo "Failed to update 'fedora base', continuing with last known good cache"
else
echo "Update finished"
# So ideally if we want to be able to build f12 images from f18 we need an rpm that has
# this patch undone, like we have in place on our f14 boxes (our f14 boxes need a f18-like rpm)
- YUM="yum --installroot=$INSTALL_ROOT --nogpgcheck -y"
+ YUM="yum --installroot=$INSTALL_ROOT --releasever=$release --nogpgcheck -y"
echo "$YUM install $FEDORA_PREINSTALLED"
$YUM install $FEDORA_PREINSTALLED || { echo "Failed to download rootfs, aborting." ; return 1; }
function debian_mirror () {
fcdistro=$1; shift
case $fcdistro in
- squeeze|wheezy|jessie)
+ wheezy|jessie)
echo http://ftp2.fr.debian.org/debian/ ;;
- oneiric|precise|quantal|raring|saucy|trusty|utopic|vivid)
+ precise|trusty|utopic|vivid|wily)
# echo http://mir1.ovh.net/ubuntu/ubuntu/ ;;
echo http://www-ftp.lip6.fr/pub/linux/distributions/Ubuntu/archive/ ;;
*) echo unknown distro $fcdistro; exit 1;;
function sshd_disable_password_auth () {
lxc=$1; shift
lxc_root=$(lxcroot $lxc)
- sed --inplace=.password -e 's,^#\?PasswordAuthentication.*,PasswordAuthentication no,' \
+ sed --in-place=.password -e 's,^#\?PasswordAuthentication.*,PasswordAuthentication no,' \
$lxc_root/etc/ssh/sshd_config
}