summaryrefslogtreecommitdiff
path: root/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'helpers')
-rwxr-xr-xhelpers/lh_chroot_hosts2
-rwxr-xr-xhelpers/lh_chroot_resolv2
2 files changed, 2 insertions, 2 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
diff --git a/helpers/lh_chroot_resolv b/helpers/lh_chroot_resolv
index eeeead2..bc53c68 100755
--- a/helpers/lh_chroot_resolv
+++ b/helpers/lh_chroot_resolv
@@ -80,7 +80,7 @@ case "${1}" in
mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf
else
# Truncating resolv file
- cat < /dev/null > chroot/etc/resolv.conf
+ Truncate chroot/etc/resolv.conf
fi
# Removing stage file