fedora_download || { echo "Failed to download 'fedora base'"; return 1; }
else
echo "Updating cache $cache/rootfs ..."
- if ! yum --installroot $cache/rootfs -y --nogpgcheck update
+ if ! yum --installroot $cache/rootfs -y --nogpgcheck update ; then
echo "Failed to update 'fedora base', continuing with last known good cache"
else
echo "Update finished"
set -e
set -x
mkdir -p $rootfs_path
- arch=$(canonical_arch $personality)
+ arch=$(canonical_arch $personality $fcdistro)
mirror=$(debian_mirror $fcdistro)
debootstrap --arch $arch $fcdistro $rootfs_path $mirror
}