Commit 250b2370 authored by Bernhard Landauer's avatar Bernhard Landauer
Browse files

rebuild chroot for regular/multilib

parent 91426c60
......@@ -78,6 +78,7 @@ update_chroot() {
create_chroot() {
create_min_fs $1
chroot_api_mount $1 && touch $1/.{mount,lock}
[[ ${MULTILIB} = true ]] && touch $1/.multilib
msg "Install build environment"
conf_pacman
pacman -r $1 --config ${PAC_CONF} -Syy base-devel --noconfirm || abort "Failed to install chroot filesystem."
......@@ -141,6 +142,17 @@ prepare_chroot() {
exit 1
fi
fi
if [ ${MULTILIB} = true ]; then
if [[ ! -e $1/.multilib ]]; then
msg "Rebuilding chroot for multilib"
CLEAN=true
fi
else
if [ -e $1/.multilib ]; then
msg "Removing multilib chroot"
CLEAN=true
fi
fi
if [[ "${CLEAN}" = "true" ]]; then
msg "Delete old chroot file system"
rm -rf $1/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment