mirror of
https://github.com/systemd/systemd.git
synced 2025-01-18 10:04:04 +03:00
Merge pull request #32042 from YHNdnzj/implicit-mounts-for
units: remove one implicit RequiresMountsFor=
This commit is contained in:
commit
bcb353bc79
@ -1249,10 +1249,10 @@ int unit_add_exec_dependencies(Unit *u, ExecContext *c) {
|
|||||||
if (!u->manager->prefix[dt])
|
if (!u->manager->prefix[dt])
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
for (size_t i = 0; i < c->directories[dt].n_items; i++) {
|
FOREACH_ARRAY(i, c->directories[dt].items, c->directories[dt].n_items) {
|
||||||
_cleanup_free_ char *p = NULL;
|
_cleanup_free_ char *p = NULL;
|
||||||
|
|
||||||
p = path_join(u->manager->prefix[dt], c->directories[dt].items[i].path);
|
p = path_join(u->manager->prefix[dt], i->path);
|
||||||
if (!p)
|
if (!p)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
@ -15,7 +15,6 @@ DefaultDependencies=no
|
|||||||
After=systemd-remount-fs.service systemd-networkd.service
|
After=systemd-remount-fs.service systemd-networkd.service
|
||||||
BindsTo=systemd-networkd.service
|
BindsTo=systemd-networkd.service
|
||||||
Conflicts=shutdown.target
|
Conflicts=shutdown.target
|
||||||
RequiresMountsFor=/var/lib/systemd/network
|
|
||||||
ConditionPathExists=!/etc/initrd-release
|
ConditionPathExists=!/etc/initrd-release
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user