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:
parent
efa4b9aaa3
commit
9e766a06ef
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue