From 58a5cbc1f2e11005a16c6c187c13b2d277515448 Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Mon, 20 Feb 2023 04:06:00 -0500 Subject: [PATCH] installer: default hostname to 'void' if unset without this you could end up with an empty hostname --- installer.sh.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/installer.sh.in b/installer.sh.in index 9efa749..6549dc6 100644 --- a/installer.sh.in +++ b/installer.sh.in @@ -624,7 +624,8 @@ menu_hostname() { } set_hostname() { - echo $(get_option HOSTNAME) > $TARGETDIR/etc/hostname + local hostname="$(get_option HOSTNAME)" + echo "${hostname:-void}" > $TARGETDIR/etc/hostname } menu_rootpassword() {