X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fsetup.DEFAULT.sh;h=bd9c3be892f27dea8c6aeeba99e662efff430e87;hb=a6f3eaed0a1eebb5c58853fb9faa8bfbec404de3;hp=711fa7f766a0a56866f0643a6cfe627d6587797b;hpb=5ba4947c2a95c36034491b616d33efe3da1c1743;p=automated-distro-installer diff --git a/fai/config/hooks/setup.DEFAULT.sh b/fai/config/hooks/setup.DEFAULT.sh index 711fa7f..bd9c3be 100755 --- a/fai/config/hooks/setup.DEFAULT.sh +++ b/fai/config/hooks/setup.DEFAULT.sh @@ -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