Quantcast
Viewing all articles
Browse latest Browse all 5077

Advanced users • Shrink and Auto-Resize Bookworm

I've been using pishrink.sh to shrink a disk image of the Raspberry PI OS to avoid problems with copying it onto SD cards that might not be exactly the same size as my image, and to make a compressed file for distribution. I made them auto-resize by adding init resize.sh to cmdline.txt and creating the necessary files.

This doesn't work with Bookworm. Using my old approach the resize code complains that boot and root are on different devices. I conjecture this is because boot is on a ramdisk at that point in the process.

I've tried saving the original cmdline.txt and restoring it just before making my image. That dumps me into BusyBox.

So, using the Bookworm release, how can I make an image that's shrunken and which automagically resizes itself on the first boot?

Statistics: Posted by BobBrown — Sun Oct 06, 2024 11:30 pm



Viewing all articles
Browse latest Browse all 5077

Trending Articles