configure_networking fails if dhcp provides no domain search path
Bug #1868310 reported by
dann frazier
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
initramfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
dann frazier |
Bug Description
configure_
+ for n in $ns_addrs
+ '[' ', ' = '["192.168.122.1", ' ']'
+ continue
+ alist='
+ '[' -n '' ']'
+ echo ' nameservers:'
+ echo ' addresses: ["192.168.122.1"]'
+ '[' -n '' ']'
Which corresponds to this line of code in _render_netplan():
[ -n "$slist" ] && echo " search: $slist"
I noticed that my dhcp server (default libvirt net) does not provide a domain search path, which is triggering this. If I move my VM to a network w/ a DHCP server that *does* provide this search path, it continues fine.
Changed in initramfs-tools (Ubuntu): | |
status: | New → In Progress |
To post a comment you must log in.
This bug was fixed in the package initramfs-tools - 0.136ubuntu2
---------------
initramfs-tools (0.136ubuntu2) focal; urgency=medium
* scripts/ functions: _render_ netplan( ): Make configure_ networking( )
more resilient when called by set -e scripts. LP: #1868310.
-- dann frazier <email address hidden> Fri, 20 Mar 2020 14:09:47 -0600