Verified Commit 49c6d92d authored by David Runge's avatar David Runge
Browse files

Use stub-resolv.conf for /etc/resolv.conf

build-inside-vm.sh:
Change the source of `/etc/resolv.conf` to point to
`/run/systemd/resolve/stub-resolv.conf`, as it provides support for
per-interface resolving [1].

Fixes #123

[1] https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html#/etc/resolv.conf
parent 5951f422
......@@ -97,7 +97,7 @@ function postinstall() {
sed -i -e 's/^#\(en_US.UTF-8\)/\1/' "${MOUNT}/etc/locale.gen"
arch-chroot "${MOUNT}" /usr/bin/locale-gen
arch-chroot "${MOUNT}" /usr/bin/systemd-firstboot --locale=en_US.UTF-8 --timezone=UTC --hostname=archlinux --keymap=us
ln -sf /var/run/systemd/resolve/resolv.conf "${MOUNT}/etc/resolv.conf"
ln -sf /run/systemd/resolve/stub-resolv.conf "${MOUNT}/etc/resolv.conf"
}
# Cleanup the image and trim it
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment