[Vmdebootstrap-devel] Bug#831439: vmdebootstrap: stretch image has no DNS setup

Antonio Terceiro terceiro at debian.org
Sat Jul 16 02:58:17 UTC 2016


Package: vmdebootstrap
Version: 1.5-1+terceiro
Severity: important
Tags: patch

Hi, building a stretch image results in systemd-networkd enabled for
interfaces matching en*, and DHCP works, but DNS is not configured. You
end up with /etc/resolv.conf copied from the host machine when the image
was built.

To have resolv.conf properly setup when using systemd-networkd, you need
to also use systemd-resolved.

The attached patch does just that. I have tested locally, and the image
built gets proper a proper DNS setup, and everything works.



-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vmdebootstrap depends on:
ii  debootstrap         1.0.81
ii  extlinux            3:6.03+dfsg-14
ii  kpartx              0.6.1-3
ii  libjs-sphinxdoc     1.4.5-1
ii  mbr                 1.1.11-5+b1
ii  parted              3.2-15
ii  python-cliapp       1.20160316-1
ii  python-distro-info  0.14
ii  python2.7           2.7.12-1
pn  python:any          <none>
ii  qemu-utils          1:2.6+dfsg-3

Versions of packages vmdebootstrap recommends:
ii  grub2-common      2.02~beta2-36
ii  python-guestfs    1:1.32.6-1
ii  qemu-system       1:2.6+dfsg-3
ii  qemu-user-static  1:2.6+dfsg-3
ii  squashfs-tools    1:4.3-3

Versions of packages vmdebootstrap suggests:
pn  cmdtest       <none>
ii  pandoc        1.17.0.3~dfsg-2+b1
pn  u-boot:armhf  <none>

-- no debconf information

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: systemd-networkd.patch
Type: text/x-diff
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/vmdebootstrap-devel/attachments/20160715/ee0a81cc/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/vmdebootstrap-devel/attachments/20160715/ee0a81cc/attachment.sig>


More information about the Vmdebootstrap-devel mailing list