Hello Joshua,

On 20.04.22 17:33, Joshua Watt wrote:
> On Wed, Apr 20, 2022 at 9:43 AM Ahmad Fatoum <[email protected]> wrote:
>>   part rootfs-a --offset=64M --fixed-size=64M --fstype=ext4
>>   part env-a    --offset=4M  --fixed-size=8K  --source rawcopy 
>> --sourceparams="file=uboot-env.bin"
>>   bootloader --ptable gpt
>>
>> If I swap the partitions around, image creation succeeds, but I need
>> them ordered the other way round.
> 
> RIght, the code creates image partitions linearly from top to bottom,
> so a partition lower in the list can't be inserted before an earlier
> one; I believe this is mostly to simplify the logic for ensuring that
> partitions don't overlap.

Thanks for the quick answer! I feared as much.

> If you are using GPT, I'd recommend mounting the disk by label or UUID
> instead of position, so the ordering isn't important

Ye, that is one possibility. Unfortunately, I need to support existing
systems that don't have distinct PARTUUIDs or labels, so it's easier
to recreate the existing partitioning offline. I will stick to genimage then.

Thanks again.

Cheers,
Ahmad

> 
>>
>> Cheers,
>> Ahmad
>>
>> --
>> Pengutronix e.K.                           |                             |
>> Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
>> 31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
>> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
> 


-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#164761): 
https://lists.openembedded.org/g/openembedded-core/message/164761
Mute This Topic: https://lists.openembedded.org/mt/90585256/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to