installer: default hostname to 'void' if unset

without this you could end up with an empty hostname
This commit is contained in:
classabbyamp 2023-02-20 04:06:00 -05:00 committed by classabbyamp
parent d8844e3ee8
commit 58a5cbc1f2

View File

@ -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() {