From 692b247c323874187e111b407a995417a8ffb268 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 16:22:02 +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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'custom') 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 { description = "LVM-snapshot of ${scfg.VG}/${scfg.LV}"; - requiredBy = ["${escapeSystemdPath "/dev/${scfg.VG}/${snapshotName name}"}.device"]; + boundBy = ["${escapeSystemdPath "/dev/${scfg.VG}/${snapshotName name}"}.device"]; + bindsTo = ["${escapeSystemdPath "/dev/${scfg.VG}/${scfg.LV}"}.device"]; + after = ["${escapeSystemdPath "/dev/${scfg.VG}/${scfg.LV}"}.device"]; unitConfig = { StopWhenUnneeded = !scfg.persist; -- cgit v1.2.3