Description: Move tftp generation after squashfs

--- ltsp-5.3.7.orig/server/ltsp-update-image
+++ ltsp-5.3.7/server/ltsp-update-image
@@ -350,6 +350,10 @@ generate_image () {
     fi
 }
 
+if [ "$SKIP_IMAGE" != "True" ]; then
+    generate_image
+fi
+
 if [ -z "${IMAGE_ONLY}" ]; then
     if [ "$NBD_NAMED" = "0" ]; then
         collect_ports
@@ -360,10 +364,6 @@ if [ -z "${IMAGE_ONLY}" ]; then
     [ -n "$RUN_LUK" ] && ltsp-update-kernels -b "${BASE}" -t "${TFTPDIRS}" -d "${TFTPBOOTDIR}"
 fi
 
-if [ "$SKIP_IMAGE" != "True" ]; then
-    generate_image
-fi
-
 # Make sure hosts.allow has the keepalive option for nbdrootd
 if [ -z "${IMAGE_ONLY}" ] && [ -z "$(grep nbdrootd /etc/hosts.allow)" ]; then
     echo 'nbdrootd: ALL: keepalive' >> /etc/hosts.allow
