Toradex Easy Installer: How to use mkfs_options in image.json

Hi

Do you have more information about how to use mkfs_option parameter in the image.json configuration file (Configuration Files | Toradex Developer Center)?

Actual I have the following open questions:

  • is “mkfs_options”: “-L var” same as using “label”: “var”?
  • can we use “mkfs_options”: “-U 203bd64b-d627-4e82-99fd-8e761785a1b4” to define the UUID for the partition?

Many thanks for your feedback!

Andreas

Hi @AndreasM,
I quickly checked the code and here are the answers:

is “mkfs_options”: “-L var” same as using “label”: “var” ?

The label option applies the correct label option to mkfs according to the filesystem being created. From what I saw it applies -L for ext2, ext3, ext4 and ntfs.
The mkfs_options just copies all the given arguments and pastes them before the device name while creating the mkfs command line.

can we use “mkfs_options”: “-U 203bd64b-d627-4e82-99fd-8e761785a1b4” to define the UUID for the partition?

It should be possible to do that, see previous answer.

Best regards,
Rafael Beims