static ip= address configuration does not end up in netplan file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Confirmed
|
Undecided
|
Unassigned | ||
Bionic |
Confirmed
|
Undecided
|
Unassigned | ||
Cosmic |
Confirmed
|
Undecided
|
Unassigned | ||
Disco |
Won't Fix
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
static ip= address configuration does not end up in netplan file
klibc ipconfig process ip=...:$proto and dumps the state into a file, which is then parsed to generate runtime netplan configs.
For static ip configuration ipconfig parses $proto values "off" "none" "static" as the same PROTO_NONE and encodes it as PROTO="none" in the serialized state file.
The function that dumps ip data (_declare_
This means that netplan files generated in /run for static ip configuration are incomplete.
Imho we should accept "off" "none" "static" as all valid PROTO settings for static ip configuration.
[Impact]
* `netplan apply` will not reapply static ip configuration as declared in ip= kernel cmdline.
[Test Case]
* boot with static ip configuration in the kernel cmdline, e.g.
ip=10.
Check that /run/netplan/*.yaml contains addresses stanzas.
[Regression Potential]
* Runtime netplan configuration will now be more complete. Meaning that static ip addresses will now persist across `netplan apply` / downing, and reupping an interface. Whilst it was intended for static ip addresses to be there, it might be unexpected that they actually work properly now.
Changed in initramfs-tools (Ubuntu Disco): | |
status: | Confirmed → Won't Fix |
This bug was fixed in the package initramfs-tools - 0.133ubuntu5
---------------
initramfs-tools (0.133ubuntu5) eoan; urgency=medium
* Correctly serialize previously absent static ip configuration
(declared as protocol 'none' by ipconfig) into runtime netplan
yaml. LP: #1832042
* Adjust testsuite sample file to match reality
* Set executable bit on resume script in local-premount
-- Dimitri John Ledkov <email address hidden> Fri, 07 Jun 2019 21:56:33 +0100