summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/lvm-snapshots.nix4
1 files changed, 4 insertions, 0 deletions
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 {
97 sleep infinity & 97 sleep infinity &
98 ) 9>/var/lock/lvm-snapshot.${scfg.VG} 98 ) 9>/var/lock/lvm-snapshot.${scfg.VG}
99 ''; 99 '';
100
101 preStart = ''
102 lvremove -f ${scfg.VG}/${snapshotName name}
103 '';
100 104
101 preStop = '' 105 preStop = ''
102 lvremove -f ${scfg.VG}/${snapshotName name} 106 lvremove -f ${scfg.VG}/${snapshotName name}