diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 16:22:02 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-04-09 16:22:02 +0200 |
commit | 692b247c323874187e111b407a995417a8ffb268 (patch) | |
tree | 0956a0f8b6ca4483ed646d10d73bf3489772056f /custom | |
parent | 23b1cbac3b1e8a49264954622363af49d50fc53e (diff) | |
download | nixos-692b247c323874187e111b407a995417a8ffb268.tar nixos-692b247c323874187e111b407a995417a8ffb268.tar.gz nixos-692b247c323874187e111b407a995417a8ffb268.tar.bz2 nixos-692b247c323874187e111b407a995417a8ffb268.tar.xz nixos-692b247c323874187e111b407a995417a8ffb268.zip |
…
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; |