qubes-linux-template-builder/scripts_fedora/04_install_qubes.sh
Marek Marczykowski-Górecki 3eaa198c97 fedora: improve error handling
Interrupt build process when error encountered.
2013-12-13 04:29:29 +01:00

15 lines
358 B
Bash
Executable File

#!/bin/sh
echo "--> Preparing environment..."
mount -t proc proc $PWD/mnt/proc
echo "--> Installing RPMs..."
export YUM0=$PWD/yum_repo_qubes
yum install -c $PWD/yum.conf $YUM_OPTS -y --installroot=$(pwd)/mnt @qubes-vm || RETCODE=1
echo "--> Installing 3rd party apps"
$SCRIPTSDIR/add_3rd_party_software.sh || RETCODE=1
umount $PWD/mnt/proc
exit $RETCODE