If tl-setup is run with the working directory that it cannot read, then it will fail when trying to install packages: > 2024-05-30 08:45:39,872: Preparing... > 2024-05-30 08:45:41,927: Downloading... > 2024-05-30 08:45:42,035: RPM: error: Unable to open current directory: Permission denied > 2024-05-30 08:45:42,045: DNF error: Transaction test error: > 2024-05-30 08:45:42,045: Errors occurred during test transaction. The directory in question has these permissions: > drwx--x--x. 76 ossman ossman 12288 May 30 08:45 .
Note that this requires NFS as otherwise the fact that we run as root will override any permission bits.
The quick fix is probably doing chdir("/") early to have a safe working directory.