summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/lvm-snapshots.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix
index afa5a9d6..96d435c5 100644
--- a/custom/lvm-snapshots.nix
+++ b/custom/lvm-snapshots.nix
@@ -72,6 +72,7 @@ in {
72 unitConfig = { 72 unitConfig = {
73 StopWhenUnneeded = !scfg.persist; 73 StopWhenUnneeded = !scfg.persist;
74 AssertPathIsDirectory = "/var/lock"; 74 AssertPathIsDirectory = "/var/lock";
75 RequiredBy = "${escapeSystemdPath "/dev/${scfg.VG}/${scfg.LV}"}.device";
75 }; 76 };
76 77
77 path = with pkgs; [ devicemapper utillinux ]; 78 path = with pkgs; [ devicemapper utillinux ];