diff options
author | Philip Taron <philip.taron@gmail.com> | 2023-11-30 15:34:31 -0800 |
---|---|---|
committer | Philip Taron <philip.taron@gmail.com> | 2023-11-30 15:34:31 -0800 |
commit | d4f57da9e85edc9d9fb00ce0b7f0906b78762659 (patch) | |
tree | d1e3c20b0ebb3d4f0e1d557a14b9a07a1f272f63 /nixos/modules/tasks/filesystems | |
parent | 9c505de9f4fddb0a13831682450445d9d59f0fd0 (diff) |
nixos/bcachefs: ensure correct ordering w.r.t. shutdown.target
Diffstat (limited to 'nixos/modules/tasks/filesystems')
-rw-r--r-- | nixos/modules/tasks/filesystems/bcachefs.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/tasks/filesystems/bcachefs.nix b/nixos/modules/tasks/filesystems/bcachefs.nix index f28fd5cde9c19..2393b4c2462a4 100644 --- a/nixos/modules/tasks/filesystems/bcachefs.nix +++ b/nixos/modules/tasks/filesystems/bcachefs.nix @@ -70,9 +70,10 @@ let value = { description = "Unlock bcachefs for ${fs.mountPoint}"; requiredBy = [ mountUnit ]; - before = [ mountUnit ]; - bindsTo = [ deviceUnit ]; after = [ deviceUnit ]; + before = [ mountUnit "shutdown.target" ]; + bindsTo = [ deviceUnit ]; + conflicts = [ "shutdown.target" ]; unitConfig.DefaultDependencies = false; serviceConfig = { Type = "oneshot"; |