From 866364267c60ca6a5a1b4d10829abe1fb76bbcf1 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sat, 28 Mar 2020 16:01:37 +0100 Subject: ... --- custom/lvm-snapshots.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'custom') diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix index 13cbf421..9b2a6562 100644 --- a/custom/lvm-snapshots.nix +++ b/custom/lvm-snapshots.nix @@ -97,6 +97,10 @@ in { sleep infinity & ) 9>/var/lock/lvm-snapshot.${scfg.VG} ''; + + preStart = '' + lvremove -f ${scfg.VG}/${snapshotName name} + ''; preStop = '' lvremove -f ${scfg.VG}/${snapshotName name} -- cgit v1.2.3