Bug 54448 - RFE: add a ConditionFileExistsNotEmpty check
Summary: RFE: add a ConditionFileExistsNotEmpty check
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-03 15:35 UTC by Enrico Scholz
Modified: 2012-09-12 07:08 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.