There are actually 2 scripts. One that runs after reboot which call the scripts that sets the hostname
while [ TRUE ]; do
echo -n "Enter host name: "
case $hn in
# make sure something is entered
# will be confirmed later
Could this be related to how the boot.log file is updated? The boot.log contains all the output from script.
I ask because I have experienced a similar but not exact issue using tee while prompting for input.