Public bug reported:

configure_networking() always returns an error for me. Using 'set -x', I
observed the following at the end of a test script:

+ for n in $ns_addrs
+ '[' ', ' = '["192.168.122.1", ' ']'
+ continue
+ alist='["192.168.122.1"]'
+ '[' -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.

** Affects: initramfs-tools (Ubuntu)
     Importance: Undecided
     Assignee: dann frazier (dannf)
         Status: In Progress

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to initramfs-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1868310

Title:
  configure_networking fails if dhcp provides no domain search path

Status in initramfs-tools package in Ubuntu:
  In Progress

Bug description:
  configure_networking() always returns an error for me. Using 'set -x',
  I observed the following at the end of a test script:

  + for n in $ns_addrs
  + '[' ', ' = '["192.168.122.1", ' ']'
  + continue
  + alist='["192.168.122.1"]'
  + '[' -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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/initramfs-tools/+bug/1868310/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to