diff --git a/lib/default.nix b/lib/default.nix index a2edb4f..9d43553 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -92,7 +92,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} '';