From 0c56febefe7dd40d0f801d5af9111c8746ad0df9 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 9 Dec 2019 21:40:42 +0100 Subject: [PATCH] [fedora] use resolv.conf from the host --- fedora-build-opennebula-image.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fedora-build-opennebula-image.sh b/fedora-build-opennebula-image.sh index 4d22522..f078042 100755 --- a/fedora-build-opennebula-image.sh +++ b/fedora-build-opennebula-image.sh @@ -107,8 +107,7 @@ mount --bind /sys /mnt/sys # systemd-networkd. # Required to resolve package mirror in chroot. -# TODO: use non-$BIGCORP DNS service. -echo 'nameserver 1.1.1.1' >> /mnt/etc/resolv.conf +cp /etc/resolv.conf /mnt/etc/resolv.conf # Initialize /etc/hosts. cat > /mnt/etc/hosts << EOF