Exit on some commands failure

This commit is contained in:
Jeremy Gardais 2019-08-06 13:30:18 +02:00
parent c21f384320
commit 80e909a9c7
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ dbs_pkg_include="aptitude,btrfs-progs,bzip2,debconf-i18n,dialog,dmsetup,htop,isc
# Prepare host system {{{ # Prepare host system {{{
apt update apt update
apt install -y coreutils debootstrap e2fsprogs gawk ipcalc lvm2 parted util-linux wget apt install -y coreutils debootstrap e2fsprogs gawk ipcalc lvm2 parted util-linux wget || exit 1
# }}} # }}}
# Partitionning {{{ # Partitionning {{{
if [ "${manage_part}" -eq 0 ]; then if [ "${manage_part}" -eq 0 ]; then
@ -168,7 +168,7 @@ fi
swapon -- /dev/mapper/"${vgname}"-swap swapon -- /dev/mapper/"${vgname}"-swap
## }}} ## }}}
## Run debootstrap ## Run debootstrap
debootstrap --arch amd64 --include="${dbs_pkg_include}" --exclude="${dbs_pkg_exclude}" "${debian_version}" /target http://ftp.fr.debian.org/debian debootstrap --arch amd64 --include="${dbs_pkg_include}" --exclude="${dbs_pkg_exclude}" "${debian_version}" /target http://ftp.fr.debian.org/debian || exit 1
# }}} # }}}
# Configure system {{{ # Configure system {{{