preseed installation, hostname and PTR
Good day.
Found very strange behavior: If VM installed with preseed and new VM
hostname is passed via kernel command line, installer ignores that
option and use data from DNS (PTR record for IP).
This is bug or feature? I found it in sqeeze/wheezy and ubuntu (12.04)
installers.
Example of command line:
DEBCONF_DEBUG=5 auto suite=wheezy url=http://192.168.1.1/preseed
keyboard-configuration/xkb-keymap=us country=RU language=en locale=en_US
keyboard-configuration/ask_detect=false
keyboard-configuration/layoutcode=us keyboard-configuration/variant=USA
keyboard-configuration/layout=USA hostname=good domain=\"\"
netcfg/choose_interface=eth0 netcfg/disable_dhcp=true
netcfg/dhcp_failed=note netcfg/get_ipaddress=192.168.2.2
netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=192.168.2.1
netcfg/get_nameservers=192.168.1.1 netcfg/confirm_static=true
mirror/http/hostname=mirror.local mirror/http/directory=/debian
clock-setup/ntp-server=192.168.1.1
And if local DNS server says, for example, that 2.2.168.192.in-addr.arpa
IN PTR bad.local, than
hostname for installed machine is 'bad'.
Kinda strange...
Reply to: