From 368f51bed853f4af553a6992eadd53811d318576 Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Mon, 1 Apr 2024 17:13:48 -0600 Subject: [PATCH] config: show debootstrap.log --- live-build/auto/build | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/live-build/auto/build b/live-build/auto/build index 5e2eeef4..501a3098 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -97,7 +97,19 @@ Expire-Date: 0 GPG_PROCESS=$! fi - lb bootstrap "$@" + ec=0 + lb bootstrap "$@" || ec=$? + if [ $ec -ne 0 ] ; then + if [ ! -f chroot/debootstrap/debootstrap.log ] ; then + echo "debootstrap.log not found" + exit $ec + fi + + echo "################# BEGIN debootstrap.log ################" + cat chroot/debootstrap/debootstrap.log + echo "################### END debootstrap.log ################" + exit $ec + fi # Set locale to C.UTF-8 by default. This may be overridden later. echo "LANG=C.UTF-8" > chroot/etc/default/locale