summaryrefslogtreecommitdiff
path: root/custom
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 16:47:09 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 16:47:09 +0200
commit6e450d6d0a159405a2ab24f64566f80fad348ca3 (patch)
tree6035ffd78f93cb37254bbbdd5184b71ace19d801 /custom
parent0c3460e28f0ca9e825c40fb891ada8aa6bb00b8a (diff)
downloadnixos-6e450d6d0a159405a2ab24f64566f80fad348ca3.tar
nixos-6e450d6d0a159405a2ab24f64566f80fad348ca3.tar.gz
nixos-6e450d6d0a159405a2ab24f64566f80fad348ca3.tar.bz2
nixos-6e450d6d0a159405a2ab24f64566f80fad348ca3.tar.xz
nixos-6e450d6d0a159405a2ab24f64566f80fad348ca3.zip
Massage
Diffstat (limited to 'custom')
-rw-r--r--custom/lvm-snapshots.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix
index 29156988..04ab06f0 100644
--- a/custom/lvm-snapshots.nix
+++ b/custom/lvm-snapshots.nix
@@ -82,7 +82,7 @@ in {
82 82
83 script = '' 83 script = ''
84 ( 84 (
85 flock -xn 9 || exit 1 85 flock -xn 9 -E 4 || exit 1
86 86
87 lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV} 87 lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV}
88 88
@@ -96,6 +96,8 @@ in {
96 96
97 serviceConfig = with pkgs; { 97 serviceConfig = with pkgs; {
98 Type = "forking"; 98 Type = "forking";
99 RestartForceExitStatus = [ "4" ];
100 RestartSec = "5min";
99 }; 101 };
100 }) cfg.snapshots; 102 }) cfg.snapshots;
101 103