Include empty resolv.conf only in buildd lxd tarballs.

This commit is contained in:
Cody Shepherd 2020-02-12 10:26:04 -08:00 committed by David Krauser
parent 58962d67d0
commit b628d90ef8

View File

@ -27,6 +27,10 @@ cleanup_linux_virtual() {
} }
trap cleanup_linux_virtual EXIT trap cleanup_linux_virtual EXIT
# The base buildd chroot includes an empty resolv.conf
# We don't want to include that in the bootable images
rm $mount_d/etc/resolv.conf
# Install dependencies # Install dependencies
env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \ env DEBIAN_FRONTEND=noninteractive chroot "$mount_d" apt-get \
update --assume-yes update --assume-yes