MycroftAI / mark-ii-sandbox

Image for the Mark II based on Raspberry Pi OS
5 stars 9 forks source link

Resize the p2 partition on disk to ensure space for new files #1

Closed krisgesling closed 2 years ago

krisgesling commented 2 years ago

Description

I was getting an "out of space" error as the p2 partition on the /dev/loopx device would only size itself based on the input partition.

This dynamically resizes p2 to fill any additional blocks as defined by the custom_image_bytes variable. Hence there should always be plenty of space to

Type of PR

Testing

Build a Sandbox image and see the your /dev/loopXp2 partition increase to fill the remainder of the 4096MB available.

krisgesling commented 2 years ago

DO NOT MERGE YET.

This may cause issues with the resultant partitions.