From other installations I'm used to get ask for the new hostname - e.g. the installer prompts with the following message:

"Please enter the hostname for this system.
The hostname is a single word that identifies your system to the network.
If you don't know what your hostname should be, consult your network administrator.
If you are setting up your own home network, you can make something up here.
Hostname:  debian"
(see attached picture)

If the computer is connected via DHCP the suggested hostname from the DHCP-server is shown instead.

I'm setting up the QNAP server in my office and will later move it to another building (with a different subnet ... aso). The reason is that my office is more quite and I want to have access to the serial console. For that reason it would be nice to have the possibility to set the hostname before the installation process starts.

However, it looks like that the message (shown above) is missing for the QNAP (armel) installation.


On 24.02.2016 21:12, Martin Michlmayr wrote:
* Peter Nagel <peter.na...@kit.edu> [2016-02-24 13:47]:
The debian installer (within expert mode) does not ask for the (new)
hostname but just takes the hostname from the flash memory.
We read the hostname from your existing configuration, but I don't see
any code that actually sets this hostname in d-i (this might be a
bug).

We set the hostname to debian and the domain to example.org.  Values
obtained via DHCP take preference over these defaults.

The reason we're setting the hostname is that you need to complete the
network configuration, so you can SSH into the installer and afaik
it's not possible to set the IP without setting other network
parameters, such as hostname (i.e. doing the network configuration in
two steps).

So I'm not sure what to do about this bug report.

I guess my question is: did the installer use the hostname from DHCP
(or was it "debian") and if so what's wrong with taking the hostname
from DHCP?

The problem is that (in some situations) it can be quite difficult to change 
the hostname afterwards.
E.g. if the installer creates a new RAID device this device would contain the 
given hostname from the installer.
If this RAID device does later contain the /-directory it can be quite 
difficult to change the hostname-settings of the RAID device afterwards.
A quick-fix would be to first (jump into a shell and to) change the hostname 
(within the installer) and than continue with the installation.
However, it would be nice if the installer would ask for the hostname before 
the installation starts.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to