summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xhelpers/lh_chroot_hosts7
1 files changed, 6 insertions, 1 deletions
diff --git a/helpers/lh_chroot_hosts b/helpers/lh_chroot_hosts
index 7858273..2795a59 100755
--- a/helpers/lh_chroot_hosts
+++ b/helpers/lh_chroot_hosts
@@ -77,7 +77,12 @@ EOF
# Creating lock file
Create_lockfile .lock
- if [ -f chroot/etc/hosts.orig ]
+ if [ -e config/chroot_local-includes/etc/hosts ]
+ then
+ # Copying local hosts
+ cp -a config/chroot_local-includes/etc/hosts chroot/etc/hosts
+ rm -f chroot/etc/hosts.orig
+ elif [ -f chroot/etc/hosts.orig ]
then
# Restore hosts file
mv chroot/etc/hosts.orig chroot/etc/hosts