From 8b0b0f638fa2c16078fdf46c599651a195a2bd87 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 9 Apr 2018 16:14:05 +0200 Subject: =?UTF-8?q?=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- custom/lvm-snapshots.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'custom') diff --git a/custom/lvm-snapshots.nix b/custom/lvm-snapshots.nix index 2d047599..0e815f55 100644 --- a/custom/lvm-snapshots.nix +++ b/custom/lvm-snapshots.nix @@ -109,8 +109,7 @@ in { bindsTo = [ ("lvm-snapshot@" + scfg.VG + "-" + snapshotName name + ".service") ]; after = [ ("lvm-snapshot@" + scfg.VG + "-" + snapshotName name + ".service") ]; - options = [ "noauto" ]; - options = mkIf scfg.readOnly "ro"; + options = [ "noauto" ] ++ optional scfg.readOnly "ro"; where = snapshotMount name; what = "/dev/" + scfg.VG + "/" + snapshotName name; -- cgit v1.2.3