guysoft / CustomPiOS

A Raspberry Pi and other ARM devices distribution builder
GNU General Public License v3.0
508 stars 146 forks source link

allow setting boot partition #187

Closed bwalex closed 1 year ago

bwalex commented 1 year ago

This change allows setting a custom boot partition instead of relying on the current heuristic of either assuming it's the same as the root, or is partition 1. For example, rockpi images come with a GPT partition table where boot is partition 4 and root is 5.

The order of arguments to mount_image is a bit weird now, but it keeps maximum backwards compatibility.

guysoft commented 1 year ago

Hey just got to this now, thanks! Also I have no rockpi to validate this works, so I hope it does not brake anything for anyone