mirror of
https://github.com/nix-community/disko.git
synced 2024-11-04 05:44:29 +03:00
Support logical volume sizing in logical extents units
This allows us to create a lv with size 100%FREE for all the availeable size of the VG, etc.
This commit is contained in:
parent
7328d8b41e
commit
84214f3e3c
@ -82,7 +82,7 @@ let {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
create.lv = q: x: ''
|
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}
|
${create-f { device = "/dev/mapper/${q.vgname}-${q.name}"; } x.content}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user