Fix diagnostics file generation in Raspberry Pi
Trying to download a diagnostics file in Pi will end up in a infinite rainbow circle loop.
sh: 1: lspci: not found
gpg: problem with the agent: Inappropriate ioctl for device
gpg: error creating passphrase: Operation cancelled
gpg: symmetric encryption of '/tmp/tmp.d0FjNbrZgi/diag.tar.bz2' failed: Operation cancelled
mv: cannot stat '/tmp/tmp.d0FjNbrZgi/diag.tar.bz2.gpg': No such file or directory
sh: 1: lspci: not found
gpg: problem with the agent: Inappropriate ioctl for device
gpg: error creating passphrase: Operation cancelled
gpg: symmetric encryption of '/tmp/tmp.TAltYqe3q5/diag.tar.bz2' failed: Operation cancelled
mv: cannot stat '/tmp/tmp.TAltYqe3q5/diag.tar.bz2.gpg': No such file or directory