summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/default.nix b/lib/default.nix
index 3d86f28..64fc93d 100644
--- a/lib/default.nix
+++ b/lib/default.nix
@@ -82,7 +82,7 @@ let {
'';
create.lv = q: x: ''
- lvcreate -L ${x.size} -n ${q.name} ${q.vgname}
+ lvcreate ${if hasInfix "%" x.size then "-l" else "-L"} ${x.size} -n ${q.name} ${q.vgname}
${create-f { device = "/dev/mapper/${q.vgname}-${q.name}"; } x.content}
'';