X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fhooks%2Fsetup.DEFAULT.sh;h=00a1df2467b336e46bfc9806aa891207477ebb05;hp=bd9c3be892f27dea8c6aeeba99e662efff430e87;hb=056eb4e90e13b2d8f7cbb8c3b875f35bf0fa207e;hpb=a6f3eaed0a1eebb5c58853fb9faa8bfbec404de3 diff --git a/fai/config/hooks/setup.DEFAULT.sh b/fai/config/hooks/setup.DEFAULT.sh index bd9c3be..00a1df2 100755 --- a/fai/config/hooks/setup.DEFAULT.sh +++ b/fai/config/hooks/setup.DEFAULT.sh @@ -2,10 +2,6 @@ # use short hostname instead of FQDN export HOSTNAME=${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 +if [ $do_init_tasks -eq 1 ]; then echo $HOSTNAME > /proc/sys/kernel/hostname fi