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:
parent
03e1b85dc4
commit
4f00cd3e82
|
@ -48,6 +48,13 @@ case "${1}" in
|
||||||
then
|
then
|
||||||
# Save resolv file or symlink
|
# Save resolv file or symlink
|
||||||
mv chroot/etc/resolv.conf chroot/etc/resolv.conf.orig
|
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
|
fi
|
||||||
|
|
||||||
if [ -f /etc/resolv.conf ]
|
if [ -f /etc/resolv.conf ]
|
||||||
|
|
Loading…
Reference in New Issue