[Bug 1717038] Re: name resolution fails in-target

Steve Langasek steve.langasek at canonical.com
Fri Sep 15 05:05:20 UTC 2017


Ah. I was using 'chroot /target ping www.google.com', not 'in-target'
since 'in-target' takes a lock and doesn't allow you to run it while
other commands are installing.

If I wait until the target setup has finished and then run 'in-target
ping www.google.com', I also see this name resolution failure.

It turns out that 'in-target' mounts a tmpfs on /run each time that it's
called, and unmounts it when it's done.  But the stub resolv.conf target
is in the /run directory on the target filesystem, *not* on the tmpfs.

To fix this, we need:
 - /run to be mounted before packages start writing to it
 - /run to persist for the duration of the install process, so that files like /run/systemd/resolve/stub-resolv.conf don't disappear after they've been set up.

** Changed in: debian-installer (Ubuntu)
   Importance: Undecided => High

** Changed in: debian-installer (Ubuntu)
       Status: Incomplete => Triaged

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to debian-installer in Ubuntu.
https://bugs.launchpad.net/bugs/1717038

Title:
  name resolution fails in-target

Status in debian-installer package in Ubuntu:
  Triaged

Bug description:
  artful (beta)

  Seems any time something running in-target tries to resolve a name

  Sep 12 03:59:58 in-target: Err:1 http://us.archive.ubuntu.com/ubuntu
  artful/main amd64 libnl-3-200 amd64 3.2.29-0ubuntu3

  Sep 12 03:59:58 in-target:   Temporary failure resolving
  'us.archive.ubuntu.com'

  
  cat /etc/resolv.conf 
  search lan
  nameserver 192.168.1.3

  (expected)

  alt-f2 to console

  # ping goo.gl (works)

  # in-target ping goo.gl (output goes to syslog:
   Sep 12 4:5:6 in-target:  ping goo.gl Temporary failure resolving 'goo.gl'

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/debian-installer/+bug/1717038/+subscriptions



More information about the foundations-bugs mailing list