summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsbin/itzks-update-disklserver-squashfs-images11
1 files changed, 6 insertions, 5 deletions
diff --git a/sbin/itzks-update-disklserver-squashfs-images b/sbin/itzks-update-disklserver-squashfs-images
index 1e8d8ce..af6be7e 100755
--- a/sbin/itzks-update-disklserver-squashfs-images
+++ b/sbin/itzks-update-disklserver-squashfs-images
@@ -46,11 +46,8 @@ if [ -e "/etc/ltsp/ltsp.conf.in" ] && cat "/etc/ltsp/ltsp.conf.in" | grep -v "#"
unset host_rootpw
fi
-# let's update ltsp.img (LTSP initrd) and LTSP's iPXE boot menu configuration, just in case...
-ltsp initrd
-ltsp ipxe
-
-ltsp_chroots=$(ls "${LTSP_OPT}" | while read chroot_dir; do test ! -h "${LTSP_OPT}/${chroot_dir}" -a -x "${LTSP_OPT}/${chroot_dir}/bin/bash" && echo -n "${chroot_dir} "; done)
+ltsp_chroots="$(ls "${LTSP_OPT}" | while read chroot_dir; do test ! -h "${LTSP_OPT}/${chroot_dir}" -a -x "${LTSP_OPT}/${chroot_dir}/bin/bash" && echo -n "${chroot_dir} " || true; done)"
+ltsp_chroots="${ltsp_chroots%%?*( )}"
for chroot in ${ltsp_chroots}; do
@@ -76,3 +73,7 @@ for chroot in ${ltsp_chroots}; do
fi
done
+
+# let's update ltsp.img (LTSP initrd) and LTSP's iPXE boot menu configuration, just in case...
+ltsp initrd
+ltsp ipxe