mirror of
https://github.com/systemd/systemd
synced 2024-10-04 15:21:01 +00:00
units: run systemd-repart only if there's configuration for it
This commit is contained in:
parent
aade0c3b6e
commit
fdfe909123
|
@ -15,6 +15,10 @@ Conflicts=shutdown.target
|
|||
After=sysroot.mount
|
||||
Before=initrd-root-fs.target shutdown.target
|
||||
ConditionVirtualization=!container
|
||||
ConditionDirectoryNotEmpty=|/usr/lib/repart.d
|
||||
ConditionDirectoryNotEmpty=|/usr/local/lib/repart.d
|
||||
ConditionDirectoryNotEmpty=|/etc/repart.d
|
||||
ConditionDirectoryNotEmpty=|/run/repart.d
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
|
|
Loading…
Reference in a new issue