summaryrefslogtreecommitdiff
path: root/custom/lvm-snapshots.nix
diff options
context:
space:
mode:
Diffstat (limited to 'custom/lvm-snapshots.nix')
-rw-r--r--custom/lvm-snapshots.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix
index ef4a97c4..fc2db4e0 100644
--- a/custom/lvm-snapshots.nix
+++ b/custom/lvm-snapshots.nix
@@ -75,6 +75,7 @@ in {
75 serviceConfig = with pkgs; { 75 serviceConfig = with pkgs; {
76 Type = "oneshot"; 76 Type = "oneshot";
77 ExecStart = "${devicemapper}/bin/lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV}"; 77 ExecStart = "${devicemapper}/bin/lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV}";
78 ExecStopPre = "${devicemapper}/bin/lvchange -a n ${scfg.VG}/${snapshotName name}"
78 ExecStop = "${devicemapper}/bin/lvremove ${scfg.VG}/${snapshotName name}"; 79 ExecStop = "${devicemapper}/bin/lvremove ${scfg.VG}/${snapshotName name}";
79 RemainAfterExit = true; 80 RemainAfterExit = true;
80 }; 81 };