-
Notifications
You must be signed in to change notification settings - Fork 226
Open
Labels
bugSomething isn't workingSomething isn't working
Description
During chroot_build.sh
, any errors - perhaps due to missing packages (lupin-casper - 22.04) - will exit before chroot_exit_teardown()
can cleanup. This leaves the build system in a dis-functional state - in the case of building locally.
Adding trap chroot_exit_teardown ERR
to build.sh
is a way of exiting chroot_build.sh
cleanly.
set -eE # exit on error
set -o pipefail # exit on pipeline error
set -u # treat unset variable as error
trap chroot_exit_teardown ERR
removing the chroot during 'debootstap()' - before 'debootstap' - also cleans the build.sh
workspace in case of EXIT on errors.
function debootstrap() {
echo "=====> running debootstrap ... will take a couple of minutes ..."
sudo rm -r chroot
mvallim
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working