summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-09-06 01:32:45 +0200
committerDaniel Baumann <daniel@debian.org>2010-09-06 01:32:45 +0200
commita5cd59eab301958376210e22d15b7a40c05bb6f2 (patch)
tree804c678f830097ae66956af8cfa6b46b4b32106a
parent20b7c6d53a79b5c733c4873d338b21524ff6c74e (diff)
downloadvyos-live-build-a5cd59eab301958376210e22d15b7a40c05bb6f2.tar.gz
vyos-live-build-a5cd59eab301958376210e22d15b7a40c05bb6f2.zip
Also deconfiguring /etc/hosts when using debootstrap to bootstrap system.
-rwxr-xr-xscripts/build/bootstrap_debootstrap3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/build/bootstrap_debootstrap b/scripts/build/bootstrap_debootstrap
index 7157b3c5f..81768376d 100755
--- a/scripts/build/bootstrap_debootstrap
+++ b/scripts/build/bootstrap_debootstrap
@@ -147,6 +147,9 @@ then
${LH_ROOT_COMMAND} chown -R $(whoami):$(whoami) chroot
fi
+ # Deconfiguring debootstrap configurations
+ rm -f chroot/etc/hosts
+
# Removing bootstrap cache
rm -f chroot/var/cache/apt/archives/*.deb