elemental-toolkit icon indicating copy to clipboard operation
elemental-toolkit copied to clipboard

Improve sizes in config

Open frelon opened this issue 3 years ago • 0 comments

In the following config it's hard to know what "size" represents without the comment.

install:
  # size in MiB
  partitions:
    oem:
      label: COS_OEM
      size: 60
      fs: ext4

I think we should use something like https://github.com/docker/go-units to parse sizes instead, making the config look like this:

install:
  partitions:
    oem:
      label: COS_OEM
      size: 60MiB
      fs: ext4

Also this must be backwards-compatible and parse in MiB if no unit is specified.

frelon avatar Dec 08 '22 09:12 frelon