#1005346 /usr/bin/unattended-upgrade: does not use the 'TMP' environment variable

#1005346#5
Date:
2022-02-11 18:25:12 UTC
From:
To:
Dear Maintainer,

   * I ugraded my raspi 3B from raspian (armhf) to debian arm64. To
     reduce the amount of writes on the SD card, I use tmp.mount with
        Options=mode=1777,strictatime,nosuid,nodev,noexec,size=128M,nr_inodes=400k
     that's right: in memory, very small size, no exec. With such
     settings, 'unattended-upgrades' fails as it tries to execute a
     script from /tmp
   * other programs are run as: env TMP=/var/tmp some_command
     in case they require to generate and execute some script. But
     this approach sometimes fails with unattended-upgrades