Re: Preseed Bug or User Error?

2021-03-03 Thread john doe

On 3/3/2021 11:53 PM, Charles Curley wrote:

On Tue, 2 Mar 2021 18:47:16 +
Brian  wrote:


Major improvement, thank you! I did have to answer some questions on
the way through, but did get a good connection.


Good. As I tried to indicate, the priority at which d-i is run affects
which questions are asked. Otherwise you get the default; what you
call the "correct selection" later on. My preseed file starts with

   debconf debconf/priority string critical


That helped, thank you.

Something is preventing d-i from stopping before rebooting. I would
like to avoid that. There may be occasions when I want to examine the
results before I reboot. (I do know about /var/log/install.)



Near the EOF at (1):


"### Finishing up the installation
# During installations from serial console, the regular virtual consoles
# (VT1-VT6) are normally disabled in /etc/inittab. Uncomment the next
# line to prevent this.
#d-i finish-install/keep-consoles boolean true

# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note"

1)  https://www.debian.org/releases/buster/example-preseed.txt

--
John Doe



Re: Preseed Bug or User Error?

2021-03-03 Thread Charles Curley
On Tue, 2 Mar 2021 18:47:16 +
Brian  wrote:

> > Major improvement, thank you! I did have to answer some questions on
> > the way through, but did get a good connection.  
> 
> Good. As I tried to indicate, the priority at which d-i is run affects
> which questions are asked. Otherwise you get the default; what you
> call the "correct selection" later on. My preseed file starts with
> 
>   debconf debconf/priority string critical

That helped, thank you.

Something is preventing d-i from stopping before rebooting. I would
like to avoid that. There may be occasions when I want to examine the
results before I reboot. (I do know about /var/log/install.)


> Try
> 
>   d-i netcfg/get_hostname string your_hostname
> 
> It works for me.

I'm going to pass on that one. I would like to use my preseed file for
several machines, and they all get their host names via DHCP.

-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Preseed Bug or User Error?

2021-03-02 Thread Brian
On Tue 02 Mar 2021 at 10:45:54 -0700, Charles Curley wrote:

> On Tue, 2 Mar 2021 10:25:02 +
> Brian  wrote:
> 
> > I wonder if this line is sufficient? Based on what works for me at
> > priority critucal:
> > 
> > d-i netcfg/wireless_show_essids select manual
> > d-i netcfg/wireless_essid string Curleynet2
> > d-i netcfg/wireless_security_type select wpa
> > d-i netcfg/wireless_wpa >redacted<
> 
> Major improvement, thank you! I did have to answer some questions on
> the way through, but did get a good connection.

Good. As I tried to indicate, the priority at which d-i is run affects
which questions are asked. Otherwise you get the default; what you call
the "correct selection" later on. My preseed file starts with

  debconf debconf/priority string critical

> For the record, here's my complete netcfg setup, other than commented
> out lines:
> 
> d-i netcfg/link_wait_timeout string 4
> d-i netcfg/get_domain string unassigned-domain
> # Disable that annoying WEP key dialog.
> d-i netcfg/wireless_wep string
> d-i netcfg/wireless_essid string Curleynet2
> d-i netcfg/wireless_security_type select wpa
> d-i netcfg/wireless_wpa string >redacted<
> 
> Network related prompts I had to answer:
> 
> Primary network interface
> 
> Wireless networks
> 
> Auto-configure networking
> 
> Please enter the hostname

Try

  d-i netcfg/get_hostname string your_hostname

It works for me.
 
> In all multiple choice cases, the correct selection was already
> highlighted; I did not have to select another option.
> 
> I expect with a bit of playing around I can minimize those.

I would expect so.

-- 
Brian.



Re: Preseed Bug or User Error?

2021-03-02 Thread Charles Curley
On Tue, 2 Mar 2021 10:25:02 +
Brian  wrote:

> I wonder if this line is sufficient? Based on what works for me at
> priority critucal:
> 
> d-i netcfg/wireless_show_essids select manual
> d-i netcfg/wireless_essid string Curleynet2
> d-i netcfg/wireless_security_type select wpa
> d-i netcfg/wireless_wpa >redacted<

Major improvement, thank you! I did have to answer some questions on
the way through, but did get a good connection.

For the record, here's my complete netcfg setup, other than commented
out lines:

d-i netcfg/link_wait_timeout string 4
d-i netcfg/get_domain string unassigned-domain
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
d-i netcfg/wireless_essid string Curleynet2
d-i netcfg/wireless_security_type select wpa
d-i netcfg/wireless_wpa string >redacted<

Network related prompts I had to answer:

Primary network interface

Wireless networks

Auto-configure networking

Please enter the hostname

In all multiple choice cases, the correct selection was already
highlighted; I did not have to select another option.

I expect with a bit of playing around I can minimize those.



-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/



Re: Preseed Bug or User Error?

2021-03-02 Thread Brian
On Mon 01 Mar 2021 at 16:27:48 -0700, Charles Curley wrote:

[...]

> ### Description: Wireless network type for ${iface}:
> #   Choose WEP/Open if the network is open or secured with WEP.
> #   Choose WPA/WPA2 if the network is protected with WPA/WPA2 PSK
> #   (Pre-Shared Key).
> # d-i netcfg/wireless_security_type select wpa
> d-i netcfg/wireless_security_type select WPA/WPA2 PSK
> # Possible choices: WEP/Open Network, WPA/WPA2 PSK

I wonder if this line is sufficient? Based on what works for me at
priority critucal:

d-i netcfg/wireless_show_essids select manual
d-i netcfg/wireless_essid string Curleynet2
d-i netcfg/wireless_security_type select wpa
d-i netcfg/wireless_wpa >redacted<

-- 
Brian.