summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2020-03-28 16:01:37 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2020-03-28 16:01:37 +0100
commit866364267c60ca6a5a1b4d10829abe1fb76bbcf1 (patch)
treea64f4e43ab0e0b828681748fe994d2610b1fdd30
parentec2fc2d4fb9b1daf7ea6e951ddc981cf330007a8 (diff)
downloadnixos-866364267c60ca6a5a1b4d10829abe1fb76bbcf1.tar
nixos-866364267c60ca6a5a1b4d10829abe1fb76bbcf1.tar.gz
nixos-866364267c60ca6a5a1b4d10829abe1fb76bbcf1.tar.bz2
nixos-866364267c60ca6a5a1b4d10829abe1fb76bbcf1.tar.xz
nixos-866364267c60ca6a5a1b4d10829abe1fb76bbcf1.zip
...
-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}