From 21ffbf571f13116ea280048a8bf7adc73b75245a Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Fri, 1 Sep 2023 15:41:53 -0400 Subject: [PATCH] Fix bugs in install.sh --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0691dca..46e3974 100755 --- a/install.sh +++ b/install.sh @@ -156,6 +156,7 @@ exec 1> >( tee -ia ${logfile} ) exec 2> >( tee -ia ${logfile} >/dev/null ) cleanup() { + set +o errexit echo -n "Cleaning up... " umount ${target}/sys >&2 umount ${target}/proc >&2 @@ -294,8 +295,8 @@ IP=\"\$( ip -4 addr show dev ${target_interface} | grep inet | awk '{ print \$2 echo \"Debian GNU/Linux 10 \\\\n \\\\l Primary interface IP address: \$IP -\" > /etc/issue" | tee ${target}/etc/if-up.d/issue-gen >&2 -chmod +x ${target}/etc/if-up.d/issue-gen 1>&2 +\" > /etc/issue" | tee ${target}/etc/network/if-up.d/issue-gen >&2 +chmod +x ${target}/etc/network/if-up.d/issue-gen 1>&2 echo "done." echo -n "Installing GRUB bootloader... "