summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 12:39:33 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 12:39:33 +0200
commit0a4d21fd755b360314f46ffeb81c1d32dec00c59 (patch)
treecdbab5cb3a842308ebb88614c0b1de4f3084dab7
parent7be5d072680f3ee13b1efea0e004dda7b7d984ff (diff)
downloadnixos-0a4d21fd755b360314f46ffeb81c1d32dec00c59.tar
nixos-0a4d21fd755b360314f46ffeb81c1d32dec00c59.tar.gz
nixos-0a4d21fd755b360314f46ffeb81c1d32dec00c59.tar.bz2
nixos-0a4d21fd755b360314f46ffeb81c1d32dec00c59.tar.xz
nixos-0a4d21fd755b360314f46ffeb81c1d32dec00c59.zip
-rw-r--r--custom/lvm-snapshots.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix
index fc2db4e0..b6527a1f 100644
--- a/custom/lvm-snapshots.nix
+++ b/custom/lvm-snapshots.nix
@@ -75,7 +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 ExecStopPre = "${devicemapper}/bin/lvchange -a n ${scfg.VG}/${snapshotName name}";
79 ExecStop = "${devicemapper}/bin/lvremove ${scfg.VG}/${snapshotName name}"; 79 ExecStop = "${devicemapper}/bin/lvremove ${scfg.VG}/${snapshotName name}";
80 RemainAfterExit = true; 80 RemainAfterExit = true;
81 }; 81 };