Fix bugs in install.sh
This commit is contained in:
parent
adaabaf9f5
commit
48d105b01f
|
@ -156,6 +156,7 @@ exec 1> >( tee -ia ${logfile} )
|
||||||
exec 2> >( tee -ia ${logfile} >/dev/null )
|
exec 2> >( tee -ia ${logfile} >/dev/null )
|
||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
|
set +o errexit
|
||||||
echo -n "Cleaning up... "
|
echo -n "Cleaning up... "
|
||||||
umount ${target}/sys >&2
|
umount ${target}/sys >&2
|
||||||
umount ${target}/proc >&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
|
echo \"Debian GNU/Linux 10 \\\\n \\\\l
|
||||||
|
|
||||||
Primary interface IP address: \$IP
|
Primary interface IP address: \$IP
|
||||||
\" > /etc/issue" | tee ${target}/etc/if-up.d/issue-gen >&2
|
\" > /etc/issue" | tee ${target}/etc/network/if-up.d/issue-gen >&2
|
||||||
chmod +x ${target}/etc/if-up.d/issue-gen 1>&2
|
chmod +x ${target}/etc/network/if-up.d/issue-gen 1>&2
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
echo -n "Installing GRUB bootloader... "
|
echo -n "Installing GRUB bootloader... "
|
||||||
|
|
Loading…
Reference in New Issue