Exit on some commands failure
This commit is contained in:
parent
c21f384320
commit
80e909a9c7
|
@ -43,7 +43,7 @@ dbs_pkg_include="aptitude,btrfs-progs,bzip2,debconf-i18n,dialog,dmsetup,htop,isc
|
|||
|
||||
# Prepare host system {{{
|
||||
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 {{{
|
||||
if [ "${manage_part}" -eq 0 ]; then
|
||||
|
@ -168,7 +168,7 @@ fi
|
|||
swapon -- /dev/mapper/"${vgname}"-swap
|
||||
## }}}
|
||||
## 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 {{{
|
||||
|
|
Loading…
Reference in New Issue