summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorAndreas Loibl <andreas@andreas-loibl.de>2010-09-05 23:43:25 +0200
committerAndreas Loibl <andreas@andreas-loibl.de>2010-09-05 23:43:25 +0200
commitbdf3c383b85375cbb486d254bb34e8e0ddf3fd2b (patch)
treeea5ffcf486bdce25ccbee4587861ee87b0777e38 /config
parent6f9b51db6be699c90ab557f2a360ace5adf2c82a (diff)
downloadkanotix-bdf3c383b85375cbb486d254bb34e8e0ddf3fd2b.zip
kanotix-bdf3c383b85375cbb486d254bb34e8e0ddf3fd2b.tar.gz
rm /etc/hosts in chroot to make sure it doesn't end up in livecd
Diffstat (limited to 'config')
-rwxr-xr-xconfig/chroot_local-hooks/04-cleanup2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/chroot_local-hooks/04-cleanup b/config/chroot_local-hooks/04-cleanup
index cae7860..4f1f822 100755
--- a/config/chroot_local-hooks/04-cleanup
+++ b/config/chroot_local-hooks/04-cleanup
@@ -10,6 +10,8 @@ mkdir -p /var/lib/apt/lists/partial
# Cleaning apt cache
rm -rf /var/cache/apt
mkdir -p /var/cache/apt/archives/partial
+# Cleaning /etc/hosts
+rm -f /etc/hosts
# Truncating logs
for FILE in $(find /var/log/ -type f)
do