How to specify size in MiB in curtin?
Curtin documentation for lvm_partition specifies that "The size can be entered in any format that can be processed by the lvm2 tools". However, this does not appear to be the case. The following use results in "113MiB is not valid input":
- { type: lvm_partition, id: lvm_partition_
Curtin does allow me to specify the size in SI Units as 113MB, which lvm also accepts, however, I need precise values to get my drbd meta-data exactly the correct size and 113Mib is more like 118MB. Does curtin only allow SI units vs normal power-of-2 units, meaning I need to convert all my partition sizes from MiB to MB before writing the curtin lvm_partition sections or is there some other way to tell curtin I want to use MiB?
I'm using Ubuntu 20.04.2 LTS with curtin 19.3-27-
The Ubuntu /etc/lvm/lvm.conf file defaults to si_unit_consistency = 1
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- Ubuntu curtin Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Steve Rainwater for more information if necessary.