summaryrefslogtreecommitdiff
path: root/custom/lvm-snapshots.nix
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 12:48:44 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 12:48:44 +0200
commitbb87c21224a1aad29b52267d3be710aac87871d1 (patch)
treebd08ed88d124514b59ba952e45f68ae28b058bdf /custom/lvm-snapshots.nix
parent3c4d62168c26a24b5b517aabc54a812dec1a3796 (diff)
downloadnixos-bb87c21224a1aad29b52267d3be710aac87871d1.tar
nixos-bb87c21224a1aad29b52267d3be710aac87871d1.tar.gz
nixos-bb87c21224a1aad29b52267d3be710aac87871d1.tar.bz2
nixos-bb87c21224a1aad29b52267d3be710aac87871d1.tar.xz
nixos-bb87c21224a1aad29b52267d3be710aac87871d1.zip
Diffstat (limited to 'custom/lvm-snapshots.nix')
-rw-r--r--custom/lvm-snapshots.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix
index c2903cf9..159fe98b 100644
--- a/custom/lvm-snapshots.nix
+++ b/custom/lvm-snapshots.nix
@@ -80,8 +80,7 @@ in {
80 ''; 80 '';
81 81
82 preStop = '' 82 preStop = ''
83 lvchange -a n ${scfg.VG}/${snapshotName name} 83 lvremove -f ${scfg.VG}/${snapshotName name}
84 lvremove ${scfg.VG}/${snapshotName name}
85 ''; 84 '';
86 85
87 serviceConfig = with pkgs; { 86 serviceConfig = with pkgs; {