diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/lvm-snapshots.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix index e8eeb637..f3ad44a1 100644 --- a/custom/lvm-snapshots.nix +++ b/custom/lvm-snapshots.nix | |||
@@ -70,7 +70,9 @@ in { | |||
70 | 70 | ||
71 | description = "LVM-snapshot of ${scfg.VG}/${scfg.LV}"; | 71 | description = "LVM-snapshot of ${scfg.VG}/${scfg.LV}"; |
72 | 72 | ||
73 | requiredBy = ["${escapeSystemdPath "/dev/${scfg.VG}/${snapshotName name}"}.device"]; | 73 | boundBy = ["${escapeSystemdPath "/dev/${scfg.VG}/${snapshotName name}"}.device"]; |
74 | bindsTo = ["${escapeSystemdPath "/dev/${scfg.VG}/${scfg.LV}"}.device"]; | ||
75 | after = ["${escapeSystemdPath "/dev/${scfg.VG}/${scfg.LV}"}.device"]; | ||
74 | 76 | ||
75 | unitConfig = { | 77 | unitConfig = { |
76 | StopWhenUnneeded = !scfg.persist; | 78 | StopWhenUnneeded = !scfg.persist; |