diff options
author | tv <tv@krebsco.de> | 2018-10-07 11:08:34 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2018-10-07 11:09:55 +0200 |
commit | 16cd458af06d3caf687eb7d80ca3df26b71fe28c (patch) | |
tree | cadcc125198616c52605b8d5bc13c82300029f43 | |
parent | 74703de2701fa3053d3459c779fc55a8f398acf1 (diff) |
lib.*.lv: /dev/foo/bar -> /dev/mapper/foo-barni/master
-rw-r--r-- | lib/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
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 |