summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 12:39:19 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 12:39:19 +0200
commit7be5d072680f3ee13b1efea0e004dda7b7d984ff (patch)
treeb2b4a2eeda71ec1992a5199f04fab8111daddb44
parentb543388729dd73389777cfd08d436da0f32815fd (diff)
downloadnixos-7be5d072680f3ee13b1efea0e004dda7b7d984ff.tar
nixos-7be5d072680f3ee13b1efea0e004dda7b7d984ff.tar.gz
nixos-7be5d072680f3ee13b1efea0e004dda7b7d984ff.tar.bz2
nixos-7be5d072680f3ee13b1efea0e004dda7b7d984ff.tar.xz
nixos-7be5d072680f3ee13b1efea0e004dda7b7d984ff.zip
-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 };