mirror of
https://github.com/systemd/systemd.git
synced 2025-03-28 02:50:16 +03:00
units: move Before deps for quota services to remote-fs.target (#5627)
Creating quota on an iscsi device is causing dependency loops at next reboot. Reason is that systemd-quotacheck and quotaon.service are ordered before local-fs.target and quota enabled mounts have a before dependency to them. This cannot work for _netdev mounts, because network activation is ordered after local-fs.target. Moving the Before dependency for systemd-quotacheck and quotaon.service to remote-fs.target fixes this.
This commit is contained in:
parent
bd9ad4ff5b
commit
4e6f13af93
@ -10,7 +10,7 @@ Description=Enable File System Quotas
|
||||
Documentation=man:quotaon(8)
|
||||
DefaultDependencies=no
|
||||
After=systemd-quotacheck.service
|
||||
Before=local-fs.target shutdown.target
|
||||
Before=remote-fs.target shutdown.target
|
||||
ConditionPathExists=@QUOTAON@
|
||||
|
||||
[Service]
|
||||
|
@ -10,7 +10,7 @@ Description=File System Quota Check
|
||||
Documentation=man:systemd-quotacheck.service(8)
|
||||
DefaultDependencies=no
|
||||
After=systemd-remount-fs.service
|
||||
Before=local-fs.target shutdown.target
|
||||
Before=remote-fs.target shutdown.target
|
||||
ConditionPathExists=@QUOTACHECK@
|
||||
|
||||
[Service]
|
||||
|
Loading…
x
Reference in New Issue
Block a user