From 16cd458af06d3caf687eb7d80ca3df26b71fe28c Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 7 Oct 2018 11:08:34 +0200 Subject: lib.*.lv: /dev/foo/bar -> /dev/mapper/foo-bar --- lib/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/default.nix b/lib/default.nix index 8b2ed86..ec8e4bf 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -26,7 +26,7 @@ let { } // config-f { device = "/dev/mapper/${x.name}"; } x.content; config.lv = q: x: - config-f { device = "/dev/${q.vgname}/${q.name}"; } x.content; + config-f { device = "/dev/mapper/${q.vgname}-${q.name}"; } x.content; config.lvm = q: x: foldl' recursiveUpdate {} (mapAttrsToList (name: config-f { inherit name; vgname = x.name; }) x.lvs); @@ -56,7 +56,7 @@ let { create.lv = q: x: '' lvcreate -L ${x.size} -n ${q.name} ${q.vgname} - ${create-f { device = "/dev/${q.vgname}/${q.name}"; } x.content} + ${create-f { device = "/dev/mapper/${q.vgname}-${q.name}"; } x.content} ''; create.lvm = q: x: '' @@ -109,7 +109,7 @@ let { ); mount.lv = q: x: - mount-f { device = "/dev/${q.vgname}/${q.name}"; } x.content; + mount-f { device = "/dev/mapper/${q.vgname}-${q.name}"; } x.content; mount.lvm = q: x: ( recursiveUpdate -- cgit v1.2.3