Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tmpfiles: try to handle read-only file systems gracefully
On read-only filesystems trying to create the target will not fail with EEXIST but with EROFS. Handle EROFS by checking if the target already exists, and if empty when truncating. This avoids reporting errors if tmpfiles doesn't actually needs to do anything. [zj: revert condition to whitelist rather then blacklisting, and add goto to avoid stat'ting twice.]
- Loading branch information