Hi,Jonas Bygdén <jbygden@gmail.com> wrote (Thu, 20 Jan 2022 22:40:12 +0100):However (albeit strange after reading the docs) if I remove the priority boot-parameter completely I DO get the hostname/domainname question and THEN I get the question about where to find the preseed file. Looking promising so far.
That's correct so far.It works like it was designed:with the priority parameter you can control, if you want to see only the mostimportant questions or all (new-user installation vs. expert installation).That only makes sense for interactive installations.When doing automated installations via preseeding, that's a completedifferent story.In that case, the control of which question you see and which not is lying in your preseed file: if you answer a question via your preseed file,the installer does not need to ask that anymore, because it's alreadyanswered.
Yes, I understand that - having extensive experience with both Solaris Jumpstart and RHEL kickstart. What I found perplexing was that regardless of setting in the preseed I still HAVE to unset the priority parameter to force the question about hostname.
"It's debian-installer limitation. By the time you fetch your preseed config file from network, netcfg has already done it's job and is gone, so it won't refetch values.”
Understanding that, in combination with the priority parameter was what solved it for me in the end. HolgerOn 20 Jan 2022, at 20:56, Jonas Bygdén <jbygden@gmail.com> wrote:
After setting priority to ‘high’ instead of ‘critical’ I don’t even get the question about where to find the preseed file...
On 20 Jan 2022, at 19:46, john doe <johndoe65534@mail.com <mailto:johndoe65534@mail.com>> wrote:
On 1/20/2022 5:11 PM, Jonas Bygdén wrote:
Ok, now it looks like this:
# 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 unassigned-hostname d-i netcfg/get_domain string unassigned-domain d-i netcfg/get_hostname seen false d-i netcfg/get_domain seen false
# 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 somehost #d-i netcfg/hostname seen false
# Disable that annoying WEP key dialog. #d-i netcfg/wireless_wep string # The wacky dhcp hostname that some ISPs use as a password of sorts. d-i netcfg/dhcp_hostname string debian d-i netcfg/get_hostname seen false d-i netcfg/get_domain seen false
But still - it goes directly to the partitioning after choosing keyboard layout, without any hostname question.
Maybey setting the 'priority' to 'high' instead of 'critical'.
-- John Doe
-- Holger Wansing <hwansing@mailbox.org>PGP-Fingerprint: 496A C6E8 1442 4B34 8508 3529 59F1 87CA 156E B076
|