if (!path_startswith(m->what, "/dev/"))
return 0;
- if (!(e = unit_name_escape_path("node-", m->what+1, ".device")))
+ if (!(e = unit_name_escape_path(m->what+1, ".device")))
return -ENOMEM;
r = manager_load_unit(UNIT(m)->meta.manager, e, &device);
n = (Mount*) other;
if (n == m)
- return 0;
+ continue;
if (path_startswith(m->where, n->where)) {
return 0;
if (streq(where, "/"))
- e = strdup("rootfs.mount");
+ e = strdup("-.mount");
else
- e = unit_name_escape_path("fs-", where+1, ".mount");
+ e = unit_name_escape_path(where+1, ".mount");
if (!e)
return -ENOMEM;
const UnitVTable mount_vtable = {
.suffix = ".mount",
- .init = unit_load_fragment_and_dropin,
+ .init = unit_load_fragment_and_dropin_optional,
.done = mount_done,
.coldplug = mount_coldplug,