Skip to content

minus-suffixed types for commands with ignored errors #9

Open
@Arfrever

Description

systemd 240 has this new feature (added here by this pull request):

        * tmpfiles.d/ line types may now be suffixed with a '-' character, in
          which case the respective line failing is ignored.

In tmpfiles.d(5) man page it is described:

The type consists of a single letter and optionally an exclamation mark and/or minus sign.
...
If the minus sign is used, this line failing to run successfully during create (and only create) will not cause the execution of systemd-tmpfiles to return an error.

For example:

# Modify sysfs but don't fail if we are in a container with a read-only /proc
w- /proc/sys/vm/swappiness - - - - 10

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions