[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#845925: autopkgtest customize script for vmdebootstrap is unable to resolve httpredir.debian.org



On Wed, 30 Nov 2016 at 09:16:09 +0100, Johannes Schauer wrote:
> Quoting Martin Pitt (2016-11-30 08:52:51)
> > The expected state is that it is a symlink to
> > /run/systemd/resolve/resolv.conf, and that's the bit that apparently doesn't
> > exist -- i. e. systemd-resolved.service is not running in your case. So using
> > the second method and vmdebootstrapping a VM without the setup script and
> > checking it inside sounds like a good next step.
...
> One solution might be to document that the autopkgtest qemu setupscript depends
> on systemd-resolved.service running. Another solution would be to make the
> script independent of it. Maybe there is also something that can be addressed
> in vmdebootstrap?

If the VM is completely dependent on systemd-resolved for name
resolution, then I think the problem might be that vmdebootstrap,
despite its name, does not actually do anything with VMs. Instead,
it runs as root and does everything with chroot(), including running
the setup script - so at the time the setup script runs,
systemd-resolved.service is not available, because services aren't
run while chrooted?

    S



Reply to: