ip= static ip configuration doesn't persist
Bug #1846992 reported by
Dimitri John Ledkov
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I specified static ip configuration, on a vlan device using ip= & vlan= kernel command-lines.
Unfortunately, that didn't quite persist into the running system and instead dhcp was performed on the underlying (non-vlan) device.
Whilst that was successful, it was unexpected, and that one is internal firewalled network that doesn't actually grant any useful internets.
ip= vlan= network config should be honored, and should persist on the networking page.
Changed in subiquity: | |
status: | New → Fix Released |
To post a comment you must log in.
Hmm, there are two things here. One is that it's not really surprising on reflection that DHCP is attempted on the underlying interface -- there is netplan in filesystem.squashfs that says it should be, after all. This is between the initramfs and netplan I think, subiquity isn't involved. Maybe the initramfs should mask any netplan in filesystem.squashfs when it is explicitly doing network config?
The other part is the vlan interface not being present in the installer. There is this code:
for typ, key in ('vlan', 'vlans'), ('bond', 'bonds'): config. get('network' , {}) by_name. get(name)
dev = self.devices_ by_name[ name] = NetworkDev(
self, name, typ)
dev.config = config
network = self.config.
for name, config in network.get(key, {}).items():
dev = self.devices_
if dev is None:
# XXX What to do if types don't match??
but by my reading self.config.config is only the last yaml file that was read, which is bogus and probably where this is going wrong.