[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

"Menu item 'netcfg-static' selected" despite



I'm migrating a live-build-based ISO installer project from bookworm to trixie. I don't want *any* network configuration during the installer stage: everything is baked into the ISO.

But no matter what I do, I'm getting the "[!!] Configure a network using static addressing" dialog. The logs say, "Menu item 'netcfg-static' selected".

Using this example (https://www.debian.org/releases/trixie/example-preseed.txt) I've tried various combinations of:

d-i netcfg/enable boolean false
d-i netcfg/choose_interface select auto (and "none")
d-i netcfg/disable_autoconfig boolean true (and "false")

The only thing I've been able to do to get it to not do this static addressing thing is something like this:

d-i netcfg/enable boolean false
d-i netcfg/choose_interface select auto
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/get_ipaddress string 192.168.17.76
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.17.1
d-i netcfg/get_nameservers string 192.168.17.1
d-i netcfg/confirm_static boolean true

But then that gets written to /etc/network/interfaces, which I don't want.

I guess I could remove it in late-preseed, but that's messy and I'd rather not avoid it.

I tried looking back through the commit history and found this PR:

https://salsa.debian.org/installer-team/netcfg/-/merge_requests/13#f9ecdb0f1d83134d3082336c3a900fe04a6d8465

which seems sort of in the same ballpark, but not exactly as it seems more related to DNS and/or gateway settings.

How can I get the installer to just NOT configure networking?

-SG


--
Seth Grover

Everybody's angry
Everybody's lonely
And maybe it's hopeless and maybe
Love is not enough
But let's not rule out the possibility

Reply to: