summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--custom/lvm-snapshots.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix
index 5e4557f3..5525f822 100644
--- a/custom/lvm-snapshots.nix
+++ b/custom/lvm-snapshots.nix
@@ -82,7 +82,10 @@ in {
82 82
83 script = '' 83 script = ''
84 ( 84 (
85 flock -xn -E 4 9 || exit 1 85 flock -xn -E 4 9
86 if [[ "$?" -ne 0 ]]; then
87 exit $?
88 fi
86 89
87 lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV} 90 lvcreate -s ${scfg.cowSize} --name ${snapshotName name} ${scfg.VG}/${scfg.LV}
88 91