From 9dfccc44c5f2eadc2b392b3577b3ea7d42d089d7 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 5 Jan 2022 22:28:24 +0100 Subject: sbin/itzks-update-disklserver-squashfs-images: Hack in a larger TMPDIR (and work around libpam-tmpdir not working for root). --- sbin/itzks-update-disklserver-squashfs-images | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sbin/itzks-update-disklserver-squashfs-images') 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 -- cgit v1.2.3