diff options
-rw-r--r-- | custom/lvm-snapshots.nix | 3 |
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; { |