summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_resolv
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_resolv')
-rwxr-xr-xhelpers/lh_chroot_resolv7
1 files changed, 7 insertions, 0 deletions
diff --git a/helpers/lh_chroot_resolv b/helpers/lh_chroot_resolv
index bad2357..afa3036 100755
--- a/helpers/lh_chroot_resolv
+++ b/helpers/lh_chroot_resolv
@@ -48,6 +48,13 @@ case "${1}" in
then
# Save resolv file or symlink
mv chroot/etc/resolv.conf chroot/etc/resolv.conf.orig
+
+ # Also truncate it, otherwise we'll end up with the one
+ # created by debootstrap in the final image.
+ #
+ # If you want to have a custom resolv.conf, please
+ # overwrite it with normal local_includes mechanism.
+ Truncate chroot/etc/resolv.conf.orig
fi
if [ -f /etc/resolv.conf ]