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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1717038

Title:
  name resolution fails in-target

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to