balena-io-modules / balena-preload

Script for preloading containers onto balena device images
https://www.balena.io/
Apache License 2.0
35 stars 8 forks source link

Use dd and blkid to get the partition label at an offset into the image #261

Open Page- opened 3 years ago

Page- commented 3 years ago

This shaves off around 7 seconds for fetchign partition info in my local testing

Change-type: patch

jakogut commented 3 years ago

Does this work for MBR as well as GPT formatted disks?

Page- commented 3 years ago

Do you know which version of balenaOS uses MBR/GPT so they can be tested @jakogut ?

jakogut commented 3 years ago

@Page- The only gpt formatted images I'm aware of currently are the ones in balena-generic. @alexgg Do you know of any others?

jakogut commented 3 years ago

@Page- Ah, the Jetson images are GPT formatted

/home/joseph/balena-os/balena-jetson/layers/meta-balena-jetson/recipes-core/images/balena-image.inc
117:PARTITION_TABLE_TYPE = "gpt"