|Summary:||RFE: add a ConditionFileExistsNotEmpty check|
|Product:||systemd||Reporter:||Enrico Scholz <enrico.scholz>|
|Status:||RESOLVED FIXED||QA Contact:||systemd-bugs|
|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.