Bug#815786: d-i does not ask for hostname
* Roger Shimizu <rogershimizu@gmail.com> [2016-02-25 18:59]:
> the code in:
> http://anonscm.debian.org/cgit/d-i/oldsys-preseed.git/tree/oldsys-preseed
> Line: 291
> HOSTNAME=$(grep "Server Name" $path/sda1/.config/uLinux.conf | sed 's/^.* //')
>
> hostname get from there, and d-i won't really set up $HOSTNAME?
We read the hostname and store it as $HOSTNAME but then we do:
add "$FILE" "netcfg/get_hostname" "string" "debian"
I guess this should be $HOSTNAME (if set) or "debian". But I'm not
sure that's even worth fixing now.
> I guess hostname should be set by the Line 293:
> unset_matching_var "HOSTNAME" NAS$(echo "$MAC" | sed
> 's/^..:..:..://' | sed 's/://g')
>
> There're several calling to "unset_matching_var" for other devices in
> that script, so if it's not working, it should be a bug to report.
What unset_matching_var does it to unset a variable if it has a
particular value. This is because we don't want to use values that
are the default values. i.e. only take the value if the user has
personally chosen something.
--
Martin Michlmayr
http://www.cyrius.com/
Reply to: