From 417b72304864d60f82b80789ba79b8e7e2daaca4 Mon Sep 17 00:00:00 2001 From: Guido Berhoerster Date: Wed, 23 Aug 2023 14:47:24 +0200 Subject: Unset TMPDIR when invoking fai-make-nfsroot On a DebianEdu installation pam_tmpdir is installed which sets TMPDIR to /tmp/user/. This is then propagated from fai-make-nfsroot to debootstrap which causes maintainer scripts making use of TMPDIR (e.g. by calling mktemp) to fail because the directory does not exist inside the chroot. --- bin/debian-edu-faiinstall | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/debian-edu-faiinstall b/bin/debian-edu-faiinstall index bfe351a..6864844 100755 --- a/bin/debian-edu-faiinstall +++ b/bin/debian-edu-faiinstall @@ -250,15 +250,15 @@ for codename in ${codenames}; do if [ ! -f "${NFSROOT}/.DEBIAN_EDU_FAI_NFSROOT_INSTALLATION_COMPLETED" ]; then # enforce NFSROOT re-creation (or initial creation) - fai-make-nfsroot -v -f -N -C ${faiconfig} + TMPDIR=/tmp fai-make-nfsroot -v -f -N -C ${faiconfig} touch "${NFSROOT}/.DEBIAN_EDU_FAI_NFSROOT_INSTALLATION_COMPLETED" else # update packages (and clean old kernel images) in NFSROOT - fai-make-nfsroot -v -k -N -C ${faiconfig} + TMPDIR=/tmp fai-make-nfsroot -v -k -N -C ${faiconfig} # adjust nfsroot configuration (SSH pubkeys, rootpw, etc.) - fai-make-nfsroot -v -a -C ${faiconfig} + TMPDIR=/tmp fai-make-nfsroot -v -a -C ${faiconfig} fi -- cgit v1.2.3