2015-02-14 17:45:00 +00:00
|
|
|
#!/bin/bash -e
|
|
|
|
# vim: set ts=4 sw=4 sts=4 et :
|
2014-05-13 02:40:09 +00:00
|
|
|
|
2015-02-14 17:45:00 +00:00
|
|
|
source "${SCRIPTSDIR}/distribution.sh"
|
2014-05-13 02:40:09 +00:00
|
|
|
|
2015-02-14 17:45:00 +00:00
|
|
|
# Create system mount points
|
|
|
|
prepareChroot
|
2013-02-16 15:00:50 +00:00
|
|
|
|
2015-02-14 17:45:00 +00:00
|
|
|
#### '----------------------------------------------------------------------
|
|
|
|
info ' Trap ERR and EXIT signals and cleanup (umount)'
|
|
|
|
#### '----------------------------------------------------------------------
|
|
|
|
trap cleanup ERR
|
|
|
|
trap cleanup EXIT
|
2013-01-25 08:06:20 +00:00
|
|
|
|
2015-02-14 17:45:00 +00:00
|
|
|
#### '----------------------------------------------------------------------
|
|
|
|
info " Installing extra packages in script_${DIST}/packages.list file"
|
|
|
|
#### '----------------------------------------------------------------------
|
|
|
|
export YUM0=${PWD}/yum_repo_qubes
|
|
|
|
yum clean all -c ${PWD}/yum.conf ${YUM_OPTS} -y --installroot=${INSTALLDIR}
|
|
|
|
installPackages
|
|
|
|
yum update -c ${PWD}/yum.conf ${YUM_OPTS} -y --installroot=${INSTALLDIR} || exit 1
|
2013-12-13 03:29:29 +00:00
|
|
|
|
2015-02-14 17:45:00 +00:00
|
|
|
#### '----------------------------------------------------------------------
|
|
|
|
info ' Cleanup'
|
|
|
|
#### '----------------------------------------------------------------------
|
|
|
|
trap - ERR EXIT
|
|
|
|
trap
|