summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hosts
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_hosts')
-rwxr-xr-xhelpers/lh_chroot_hosts5
1 files changed, 3 insertions, 2 deletions
diff --git a/helpers/lh_chroot_hosts b/helpers/lh_chroot_hosts
index c4d633e..8480383 100755
--- a/helpers/lh_chroot_hosts
+++ b/helpers/lh_chroot_hosts
@@ -87,8 +87,9 @@ EOF
# Restore hosts file
mv chroot/etc/hosts.orig chroot/etc/hosts
else
- # Remove hosts file
- rm -f chroot/etc/hosts
+ # 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
fi
# Removing stage file