Skip to content

Commit

Permalink
do not echo hostname to /proc in dirinstall as this changes the hostn…
Browse files Browse the repository at this point in the history
…ame of the host system
  • Loading branch information
abezella authored and Thomas Lange committed Apr 26, 2016
1 parent 3c3db9e commit 3249a92
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion examples/simple/hooks/setup.DEFAULT.sh
Expand Up @@ -2,4 +2,10 @@

# use short hostname instead of FQDN
export HOSTNAME=${HOSTNAME%%.*}
echo $HOSTNAME > /proc/sys/kernel/hostname
# n.b. use $action instead of $FAI_ACTION
# as the latter is apparently unset at this point in dirinstall
if [ "$action" = "dirinstall" ] ; then
:
else
echo $HOSTNAME > /proc/sys/kernel/hostname
fi

0 comments on commit 3249a92

Please sign in to comment.