[systemd-bugs] [Bug 54448] New: RFE: add a ConditionFileExistsNotEmpty check

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Sep 3 08:35:43 PDT 2012


https://bugs.freedesktop.org/show_bug.cgi?id=54448

             Bug #: 54448
           Summary: RFE: add a ConditionFileExistsNotEmpty check
    Classification: Unclassified
           Product: systemd
           Version: unspecified
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: systemd-bugs at lists.freedesktop.org
        ReportedBy: enrico.scholz at sigma-chemnitz.de
         QAContact: systemd-bugs at lists.freedesktop.org


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.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the systemd-bugs mailing list