SUSE / rmt

RPM repository mirroring tool and registration proxy for SUSE Customer Center.
Other
37 stars 46 forks source link

rmt-cli mirror should use better temporary directory #1137

Closed olafhering closed 2 weeks ago

olafhering commented 2 months ago

It seems that all files are downloaded to /tmp before they are moved to /usr/share/rmt/public/repo/.

Since the directory /usr/share/rmt/public/repo/ points to the actual storage (the RMT admin owns that symlink), it can easily happen that rmt-cli mirror will run into ENOSPC because /tmp may be too small.

I suggest to use /usr/share/rmt/public/repo/.tmp as temporary storage, unless TMPDIR is already set.

Adnilson commented 3 days ago

Hi @olafhering we merged the changes for this issue and will let you know when this is deployed.