summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hosts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-11-10 15:40:53 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:22:28 +0100
commit889489c8ce3339ca3b6cab45ec58e73cca40a51a (patch)
treede2933b3f24f5168728a46565eb662c38195cf37 /helpers/lh_chroot_hosts
parent7fc3e5c0e408a206184fddf6cda1ffc8831078bd (diff)
downloadlive-build-889489c8ce3339ca3b6cab45ec58e73cca40a51a.zip
live-build-889489c8ce3339ca3b6cab45ec58e73cca40a51a.tar.gz
Using shell redirection to truncate rather than additional commands/forks/files, thanks to Justin Pryzby <jpryzby@quoininc.com>.
Diffstat (limited to 'helpers/lh_chroot_hosts')
-rwxr-xr-xhelpers/lh_chroot_hosts2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hosts b/helpers/lh_chroot_hosts
index 8480383..6a91831 100755
--- a/helpers/lh_chroot_hosts
+++ b/helpers/lh_chroot_hosts
@@ -89,7 +89,7 @@ EOF
else
# Blank out hosts file, don't remove in case
# its a symlink, as in the case of exposedroot mode
- cat /dev/null > chroot/etc/hosts
+ Truncate chroot/etc/hosts
fi
# Removing stage file