Hello Theodore,

Theodore Ts'o [2019-03-31 17:32 -0400]:
> Hmm, I'm thinking instead of adding:
> 
> [Unit]
> ConditionCapability=CAP_SYS_ADMIN
> ConditionCapability=CAP_SYS_RAWIO
> 
> Could you test this and confirm whether or not this would correctly
> cause the unit to be skipped for your lxc containers which don't have
> CAP_SYS_RAWIO?

Right, this is even better, thanks! This works fine:

   Active: inactive (dead)
Condition: start condition failed at Mon 2019-04-01 07:17:48 UTC; 8s ago
           └─ ConditionCapability=CAP_SYS_RAWIO was not met
Apr 01 07:17:48 sid-amd64 systemd[1]: Condition check resulted in Remove Stale 
Online ext4 Metadata Check Snapshots being skipped.

Martin

Reply via email to