Bug#236533: I am confused
I am confused about all this hostname stuff.
I think that we should stop calling the argument of "send host-name"
a "hostname". Instead let's call it a "host-name". The host-name
can be different from the hostname. See #239591.
I take it we want to do something like this:
Try DHCP
If DHCP succeeded {
If a hostname is returned {
Ask the user for a hostname with the returned hostname
as the default.
} else {
Ask the user for a hostname with "debian"
as the default.
}
Write hostname to /etc/hostname and /etc/hosts
} else {
Ask the user for a host-name
Try DHCP with "send host-name <host-name>"
If DHCP succeeded {
Write "send host-name <host-name>" to dhclient.conf that
gets used after reboot
If a hostname is returned {
Ask the user for a hostname with the returned hostname
as the default.
} else {
Ask the user for a hostname with <host-name>
as the default.
}
Write hostname to /etc/hostname and /etc/hosts
}
}
--
Thomas
Reply to: