modules/persist: ensure backing directory is created *before* we mount

This commit is contained in:
Colin 2024-02-25 07:22:50 +00:00
parent 6865331b48
commit 52b8cd0209
1 changed files with 1 additions and 0 deletions

View File

@ -292,6 +292,7 @@ let
# x-systemd options documented here:
# - <https://www.freedesktop.org/software/systemd/man/systemd.mount.html>
]
++ (builtins.map (unit: "x-systemd.after=${unit}") requires)
++ (builtins.map (unit: "x-systemd.requires=${unit}") requires)
++ (builtins.map (unit: "x-systemd.before=${unit}") opt.wantedBeforeBy)
++ (builtins.map (unit: "x-systemd.wanted-by=${unit}") (opt.wantedBy ++ opt.wantedBeforeBy));