summaryrefslogtreecommitdiff
path: root/sbin/itzks-update-disklserver-squashfs-images
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-06 15:56:48 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-06 15:56:48 +0100
commit24ea44d59df78cdd30c0efeb6ee0fd152217010d (patch)
treed394204e65969b4fd11cde9545d3e49cf92761fa /sbin/itzks-update-disklserver-squashfs-images
parent5f6af6f2f996307bfdd1374bf9dae15ce8880fbe (diff)
downloaditzks-systems-24ea44d59df78cdd30c0efeb6ee0fd152217010d.tar.gz
itzks-systems-24ea44d59df78cdd30c0efeb6ee0fd152217010d.tar.bz2
itzks-systems-24ea44d59df78cdd30c0efeb6ee0fd152217010d.zip
sbin/itzks-update-disklserver-squashfs-images: Don't abort script in creation of ltsp_chroots list. Move ltsp.img and iPXE boot menu update/creation to the bottom of the script.
Diffstat (limited to 'sbin/itzks-update-disklserver-squashfs-images')
-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