Fix bugs in install.sh

This commit is contained in:
Joshua Boniface 2023-09-01 15:41:53 -04:00
parent b5edeb9b1d
commit 21ffbf571f
1 changed files with 3 additions and 2 deletions

View File

@ -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... "