From 11c139b5cb84f5f43b5126468a5603ac3651fd04 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 15:46:13 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/lvm-snapshots.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'custom') diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix index 74b11e3a..a144f06a 100644 --- a/custom/lvm-snapshots.nix +++ b/custom/lvm-snapshots.nix @@ -73,7 +73,7 @@ in { unitConfig = { StopWhenUnneeded = !scfg.persist; AssertPathIsDirectory = "/var/lock"; - RequiredBy = "${escapeSystemdPath "/dev/${scfg.VG}/${scfg.LV}"}.device"; + RequiredBy = "${escapeSystemdPath "/dev/${scfg.VG}/${snapshotName name}"}.device"; }; path = with pkgs; [ devicemapper utillinux ]; -- cgit v1.2.3