Bug 54448

Summary: RFE: add a ConditionFileExistsNotEmpty check
Product: systemd Reporter: Enrico Scholz <enrico.scholz>
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Enrico Scholz 2012-09-03 15:35:43 UTC
It would be nice to have a condition which has a similar effect like the 'test -s' shell function.

Such a check would be useful for:

* working on read-only filesystems; when file is empty, another one is bind-mounted on it.

* dealing with errors during system initialization. E.g. when powering off the machine on ssh key generation an empty files might remain.  Checking for pure existence of file won't be enough in this case.
Comment 1 Lennart Poettering 2012-09-12 07:08:36 UTC
Implemented in git.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.