Truncating resolv.conf created during bootstrap stage, otherwise we'll end up with a local resolv.conf in the final image. Thanks to Ben Armstrong <synrg@debian.org>.

This commit is contained in:
Daniel Baumann 2009-01-10 21:18:53 +01:00
parent 03e1b85dc4
commit 4f00cd3e82
1 changed files with 7 additions and 0 deletions

View File

@ -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 ]