summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-04-09 16:14:05 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-04-09 16:14:05 +0200
commit8b0b0f638fa2c16078fdf46c599651a195a2bd87 (patch)
treee7fece75405d0a8322c2632555199e50fb602bc9
parent5589798d1b1824f3ea455fc5f1334c9d61954810 (diff)
downloadnixos-8b0b0f638fa2c16078fdf46c599651a195a2bd87.tar
nixos-8b0b0f638fa2c16078fdf46c599651a195a2bd87.tar.gz
nixos-8b0b0f638fa2c16078fdf46c599651a195a2bd87.tar.bz2
nixos-8b0b0f638fa2c16078fdf46c599651a195a2bd87.tar.xz
nixos-8b0b0f638fa2c16078fdf46c599651a195a2bd87.zip
-rw-r--r--custom/lvm-snapshots.nix3
1 files changed, 1 insertions, 2 deletions
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 {
109 bindsTo = [ ("lvm-snapshot@" + scfg.VG + "-" + snapshotName name + ".service") ]; 109 bindsTo = [ ("lvm-snapshot@" + scfg.VG + "-" + snapshotName name + ".service") ];
110 after = [ ("lvm-snapshot@" + scfg.VG + "-" + snapshotName name + ".service") ]; 110 after = [ ("lvm-snapshot@" + scfg.VG + "-" + snapshotName name + ".service") ];
111 111
112 options = [ "noauto" ]; 112 options = [ "noauto" ] ++ optional scfg.readOnly "ro";
113 options = mkIf scfg.readOnly "ro";
114 113
115 where = snapshotMount name; 114 where = snapshotMount name;
116 what = "/dev/" + scfg.VG + "/" + snapshotName name; 115 what = "/dev/" + scfg.VG + "/" + snapshotName name;