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.



Preseed Bug or User Error?

2021-03-01 Thread Charles Curley
I have a Lenovo T61, with a iwl4965 wireless interface that requires a
firmware blob. It is well supported in Buster. I am testing it with the
latest Bullseye netinst installer,
https://cdimage.debian.org/images/unofficial/non-free/images-including-firmware/weekly-builds/amd64/iso-cd/firmware-testing-amd64-netinst.iso

I have a preseed file which the installer finds and loads. It has
several stanzas related to the wireless interface, reproduced below.
When I have them commented in, the installer finds the firmware blob
and installs it, apparently correctly. The installer asks me for the
network to use (already provided in the preseed file). However, I am
unable to configure the network.

The password for the network as a non-alphanumeric character in it. It
occurred to me that the parser might not like that character.
Commenting out only that line produced no change: I was never prompted
for the password, and did not get a connection.

If I comment out the wireless interface stanzas entirely except for
"d-i netcfg/wireless_wep string", I can get a manual configuration, and
the interface comes up correctly. If that string is commented out,
manual wireless configuration fails.

I have the syslog files from both a sucessful manual configuration and
from a failure, but have not attached them here.

So, is there an error in my preseed file, or have I hit a bug in d-i?
And if the latter, under what package should I file it?

Preseed wireless interface stanzas:
--

### Description: Wireless ESSID for ${iface}:
#   ${iface} is a wireless network interface. Please enter the name (the ESSID)
#   of the wireless network you would like ${iface} to use. If you would like
#   to use any available network, leave this field blank.
d-i netcfg/wireless_essid string Curleynet2

### Description: Wireless ESSID for ${iface}:
#   Attempting to find an available wireless network failed.
#   .
#   ${iface} is a wireless network interface. Please enter the name (the ESSID)
#   of the wireless network you would like ${iface} to use. To connect to any
#   available network, leave this field blank.
d-i netcfg/wireless_essid_again string Curleynet2

### 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

### Description: WEP key for wireless device ${iface}:
#   If applicable, please enter the WEP security key for the wireless
#   device ${iface}. There are two ways to do this:
#   .
#   If your WEP key is in the format '--nn', 'nn:nn:nn:nn:nn:nn:nn:nn',
#   or '', where n is a number, just enter it as it is into this field.
#   .
#   If your WEP key is in the format of a passphrase, prefix it with 's:'
#   (without quotes).
#   .
#   Of course, if there is no WEP key for your wireless network, leave this
#   field blank.
# d-i netcfg/wireless_wep string 

### Description: WPA/WPA2 passphrase for wireless device ${iface}:
#   Enter the passphrase for WPA/WPA2 PSK authentication. This should be the
#   passphrase defined for the wireless network you are trying to use.
d-i netcfg/wireless_wpa string >redacted<
--


-- 
Does anybody read signatures any more?

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