Basically the opposite of Debian preseed: How to force prompt for hostname and domain?
With the new Debian bullseye release, the net install is asking me for hostname and domain name. How to preseed it to disable such prompt?
- I used the same
preseedfile with the buster release, and cannot recall it asked for hostname and domain name or not. At least it was not causing me trouble. - I check the new Debian bullseye
preseedsample file and found the setting is the same as mine.
# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string my-hostname
d-i netcfg/get_domain string my-domain
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
d-i netcfg/hostname string my-domain
# The wacky dhcp hostname that some ISPs use as a password of sorts.
d-i netcfg/dhcp_hostname string my-domain
How to preseed hostname and domain name to disable their prompt?