aboutsummaryrefslogtreecommitdiff
path: root/release/tools/azure.conf
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2014-11-19 20:19:53 +0000
committerGlen Barber <gjb@FreeBSD.org>2014-11-19 20:19:53 +0000
commit91333d6a2da25901490044d87e633ac5dba8cb0c (patch)
tree9dd80e295fe87a5b82ef2d993f11a04691044e79 /release/tools/azure.conf
parent9d3df3bdb7367f7d0ba2a98d5fd2db7c85823743 (diff)
downloadsrc-91333d6a2da25901490044d87e633ac5dba8cb0c.tar.gz
src-91333d6a2da25901490044d87e633ac5dba8cb0c.zip
In vm_install_base(), copy the host resolv.conf into
the build chroot before attempting to do anything that requires working DNS (i.e., pkg bootstrap). In vm_extra_pre_umount(), remove the resolv.conf before the disk image is unmounted from the backing md(4). Reported by: cperciva Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/projects/release-vmimage/; revision=274725
Diffstat (limited to 'release/tools/azure.conf')
-rw-r--r--release/tools/azure.conf2
1 files changed, 2 insertions, 0 deletions
diff --git a/release/tools/azure.conf b/release/tools/azure.conf
index 16c207da3240..3e4a4864adfe 100644
--- a/release/tools/azure.conf
+++ b/release/tools/azure.conf
@@ -33,6 +33,8 @@ vm_extra_pre_umount() {
echo 'console="comconsole vidconsole"' >> ${DESTDIR}/boot/loader.conf
echo 'comconsole_speed="115200"' >> ${DESTDIR}/boot/loader.conf
+ rm -f ${DESTDIR}/etc/resolv.conf
+
return 0
}