Commit cf19e2b7 authored by Zbigniew Jędrzejewski-Szmek's avatar Zbigniew Jędrzejewski-Szmek Committed by Michael Stapelberg

systemd: order remote mounts from mountinfo before

Usually the network is stopped before filesystems are umounted.
Ordering network filesystems before means that their
unmounting will be performed earlier, and can terminate sucessfully.
parent 712ebba2
......@@ -1508,6 +1508,9 @@ static int mount_add_one(
u = manager_get_unit(m, e);
if (!u) {
const char* const target =
delete = true;
u = unit_new(m, sizeof(Mount));
......@@ -1534,7 +1537,7 @@ static int mount_add_one(
goto fail;
r = unit_add_dependency_by_name(u, UNIT_BEFORE, SPECIAL_LOCAL_FS_TARGET, NULL, true);
r = unit_add_dependency_by_name(u, UNIT_BEFORE, target, NULL, true);
if (r < 0)
goto fail;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment