From 7aa1480b838bf4952b361fd88f60a5a45b106363 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 15:43:11 +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 | 1 + 1 file changed, 1 insertion(+) (limited to 'custom') 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 { unitConfig = { StopWhenUnneeded = !scfg.persist; AssertPathIsDirectory = "/var/lock"; + RequiredBy = "${escapeSystemdPath "/dev/${scfg.VG}/${scfg.LV}"}.device"; }; path = with pkgs; [ devicemapper utillinux ]; -- cgit v1.2.3