summaryrefslogtreecommitdiff
path: root/sbin/itzks-update-disklserver-squashfs-images
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-05 22:28:24 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2022-01-05 22:28:24 +0100
commit9dfccc44c5f2eadc2b392b3577b3ea7d42d089d7 (patch)
tree7c2c3b9cdc16cfd055aa6760191d1e256520d9ec /sbin/itzks-update-disklserver-squashfs-images
parentc6d82ec3b3f5819509ad9d6acb894a62356883c3 (diff)
downloaditzks-systems-9dfccc44c5f2eadc2b392b3577b3ea7d42d089d7.tar.gz
itzks-systems-9dfccc44c5f2eadc2b392b3577b3ea7d42d089d7.tar.bz2
itzks-systems-9dfccc44c5f2eadc2b392b3577b3ea7d42d089d7.zip
sbin/itzks-update-disklserver-squashfs-images: Hack in a larger TMPDIR (and work around libpam-tmpdir not working for root).
Diffstat (limited to 'sbin/itzks-update-disklserver-squashfs-images')
-rwxr-xr-xsbin/itzks-update-disklserver-squashfs-images8
1 files changed, 8 insertions, 0 deletions
diff --git a/sbin/itzks-update-disklserver-squashfs-images b/sbin/itzks-update-disklserver-squashfs-images
index 55b4757..c46c616 100755
--- a/sbin/itzks-update-disklserver-squashfs-images
+++ b/sbin/itzks-update-disklserver-squashfs-images
@@ -19,6 +19,14 @@
LTSP_OPT="/srv/ltsp"
+# work around libpam-tmpdir not working for the
+# root user and /tmp being too small anyway...
+TMPDIR="/srv/tmp"
+export TMPDIR
+mkdir -p ${TMPDIR}/
+chown root:root ${TMPDIR}
+chmod 1777 ${TMPDIR}
+
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)
for chroot in ${ltsp_chroots}; do