summaryrefslogtreecommitdiff
path: root/helpers/lh_chroot_hostname
diff options
context:
space:
mode:
Diffstat (limited to 'helpers/lh_chroot_hostname')
-rwxr-xr-xhelpers/lh_chroot_hostname6
1 files changed, 6 insertions, 0 deletions
diff --git a/helpers/lh_chroot_hostname b/helpers/lh_chroot_hostname
index 2df0aa2..17b5499 100755
--- a/helpers/lh_chroot_hostname
+++ b/helpers/lh_chroot_hostname
@@ -70,6 +70,12 @@ EOF
# Creating lock file
Create_lockfile .lock
+ # Copying hostname from local-includes, if existing
+ if [ -e config/chroot_local-includes/etc/hostname ]
+ then
+ cp -a config/chroot_local-includes/etc/hostname chroot/etc/hostname
+ fi
+
Echo_message "Deconfiguring file /bin/hostname"
# Restore hostname file