Commit bdf7fda8 authored by Alessandro Elias's avatar Alessandro Elias
Browse files

addToChrootFile now treats error.


Signed-off-by: Alessandro Elias's avatarAlessandro Elias <ae11@c3sl.ufpr.br>
parent db801c90
...@@ -20,11 +20,13 @@ ...@@ -20,11 +20,13 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
# USA. # USA.
set -x
type addToChrootFile >/dev/null 2>&1 || . common.sh type addToChrootFile >/dev/null 2>&1 || . common.sh
_DIST=$1 #_DIST=$1
CHROOTDIR=$2 CHROOTDIR=$2
CHROOTFILE=$3 #CHROOTFILE=$3
#DISTRO=$4 #DISTRO=$4
DPLIST=$5 DPLIST=$5
#INSTLIST=$6 #INSTLIST=$6
...@@ -37,14 +39,14 @@ DPLIST=$5 ...@@ -37,14 +39,14 @@ DPLIST=$5
#SHORTNAME=${13} #SHORTNAME=${13}
#SOURCESLISTDEFAULT=${14} #SOURCESLISTDEFAULT=${14}
#TMP=${15} #TMP=${15}
LOG_FILE=${16} #LOG_FILE=${16}
#PREFIX=$PWD #PREFIX=$PWD
addToChrootFile $CHROOTDIR "export PATH='/fakebin:${PATH}'" addToChrootFile $CHROOTDIR 'export PATH=/fakebin:${PATH}'
addToChrootFile $CHROOTDIR "export DEBIAN_FRONTEND=noninteractive"
addToChrootFile $CHROOTDIR "apt-get update && apt-get --quiet --assume-yes install $(cat ${DPLIST} | grep --invert-match '^#')" #TODO: CORRIGIR ERRO COM PACOTE UBIQUITY-FRONTEND-KDE UBIQUITY-UBUNTU-ARTWORK
#initChroot $CHROOTDIR $LOG_FILE || log ERROR "failed to initialize chroot." addToChrootFile $CHROOTDIR 'export DEBIAN_FRONTEND=noninteractive'
#execChroot $CHROOTDIR addToChrootFile $CHROOTDIR "apt-get --quiet update"
#closeChroot $CHROOTDIR $LOG_FILE || log ERROR "failed to close chroot." addToChrootFile $CHROOTDIR "apt-get --quiet --assume-yes install $(cat ${DPLIST} | grep --invert-match '^#')"
exit 0 exit 0
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