ISO build having dns problems
Closed, ResolvedPublic

Description

livecd-rootfs' build script is used to finalize the preinstalled pool for the ISO, among its steps it runs apt-get update. which runs into resolution errors

00:12:10.782 Err:3 http://archive.ubuntu.com/ubuntu bionic InRelease
00:12:10.783   Temporary failure resolving 'archive.ubuntu.com'

A quick guess would be that the resolvconf/run dir is unmounted by that time already. It stands to reason that maybe the bit that runs apt-get update shouldn't be run after the /run is unmounted.

Needs investgiation for actual cause though. May be fairly tricky. Also has no adverse side effects since the preinstalled-pool stills seems to update as expected, so, not terrible urgent.

sitter created this task.May 4 2018, 3:11 PM
sitter triaged this task as Low priority.
sitter closed this task as Resolved.May 9 2018, 8:20 AM
sitter claimed this task.

So, the reason this happens is because the build step is basically building the ISO. At the end of the config stage the entire shebang is unmounted, so we have no more network resolution during build. That isn't necessarily a problem and also was the same in xenial and likely when the feature was created.
Until this actually breaks (against which we have openqa tests) we can ignore it. Should this become a problem in the future we can simply move the code out of the livecd-rootfs' build code into our actual hook, where we still have name resolution.