From 9e766a06efab97006fb987cafd3addd237db34b5 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 13 Oct 2009 13:24:56 +0200 Subject: Respecting /etc/hostname in case it's part of chroot_local-includes, thanks to Luigi Capriotti for the idea. --- helpers/lh_chroot_hostname | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.0