1
0
mirror of https://github.com/systemd/systemd synced 2024-07-01 07:34:28 +00:00

units: make quota services bind to corresponding mount units

Follow-up for a628d933cc

systemd-growfs@.service does the same.
This commit is contained in:
Mike Yuan 2024-03-10 22:57:22 +08:00
parent 1d87a00a95
commit af720f38d9
No known key found for this signature in database
GPG Key ID: 417471C0A40F58B3
2 changed files with 3 additions and 2 deletions

View File

@ -14,9 +14,9 @@ Documentation=man:quotaon(8)
ConditionPathExists={{QUOTAON}}
ConditionPathExists=!/etc/initrd-release
After=%i.mount
After=systemd-quotacheck@%i.service
DefaultDependencies=no
BindsTo=%i.mount
After=systemd-quotacheck@%i.service %i.mount
Before=shutdown.target
Conflicts=shutdown.target

View File

@ -15,6 +15,7 @@ ConditionPathExists={{QUOTACHECK}}
ConditionPathExists=!/etc/initrd-release
DefaultDependencies=no
BindsTo=%i.mount
After=%i.mount
Before=shutdown.target
Conflicts=shutdown.target