PiShrink imaging to a USB drive (SSK thumb drive) not expanding root partition
Hello,
I have been using your script successfully for a couple of years now but it has always been used to image MicroSD cards. This past weekend I was playing around with a new build of Kali Linux for the Pi5 and found that the script did not resize the root partition when it was imaged to a USB thumb drive and booted.
I saw that PiShrink created an /etc/rc.local file when the image was being created so I took a look at the file on the thumb drive that I wrote the image to. I saw the references to the mmcblk0p and mmcblk0 devices and decided to try making a quick modification to see if the drive would expand on reboot. The modification to the /etc/rc.local file is shown below
sudo sed -i 's/mmcblk0p\|mmcblk0/sda/g' /media/rstrom/ROOTFS/etc/rc.local
I was wondering if you would be able to modify the script to work when the image is written to either a MicroSD card or a USB thumb drive.
Thanks for your consideration and thanks for the excellent script!
Robert