-
Notifications
You must be signed in to change notification settings - Fork 78
How to correctly fix init.resizefs when booting rpi from ssd #27
Comments
Added Ognian@e562ca5 but it is not tested yet... (don't have empty sd and/or usb ssd's now) |
I think programmatically finding out the name of the first partition should be feasible. I guess the name of the disk is quite unpredictable and can also change in the future, so I would prefer not to hardcode any expectations of it. In that sense, I'd also like to get rid of this hardcoding of the expected name of the first partition that we have now. Tools like |
Changed to Ognian@23ede0c should work but is still not tested... |
I was able to test this. The first commit does work. The second one has the following error:
|
I tried flashing a regular SD Card again afterward and failed due to the regex not matching. Since we're using sh instead of bash, the syntax needs to be a bit different.
|
When generating the image for raspberry pi and burning it to a ssd, so that the rpi boots from the usb disk instead of the sd card
everything it needs to be changed is this line ('p1' to '1') to make the install successful.
I'm not sure how we shall fix this. One possibility is to add a third '$IMAGE_TYPE' -> raspberrypiusb but this would lead to many changes in the if's which would make the code less readable. Another would be to add a '$IMAGE_SUBTYPE'...
The most elegant way would be to somehow programmatically find out the name of the first partition of the '$ROOTDISK'...
Any ideas ?
The text was updated successfully, but these errors were encountered: