X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fsetup.DEFAULT.sh;h=bd9c3be892f27dea8c6aeeba99e662efff430e87;hb=0a2a4d11ef323da19d0cebe2f5ec7b1be7bd15bc;hp=711fa7f766a0a56866f0643a6cfe627d6587797b;hpb=3bd65f0ca635f1349626c2393a4dd8a50df64f54;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