diff options
Diffstat (limited to 'custom')
-rw-r--r-- | custom/lvm-snapshots.nix | 3 |
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; |