Respecting /etc/hostname in case it's part of chroot_local-includes, thanks to Luigi Capriotti <l.capriotti@xbmc.org> for the idea.

This commit is contained in:
Daniel Baumann 2009-10-13 13:24:56 +02:00
parent efa4b9aaa3
commit 9e766a06ef
1 changed files with 6 additions and 0 deletions

View File

@ -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