Skip to content

Raspios resize is failing #905

@procount

Description

@procount

Hi @XECDesign
I think there is a problem with this line in the initramfs:

https://github.com/RPi-Distro/raspberrypi-sys-mods/blob/9921bca8dfb37b88c1cc6578753d707bc4a1917f/initramfs-tools/scripts/local-premount/firstboot#L55

Users are finding that installing Raspios through PINN on an SSD is freezing in firstboot on some installations.
In the Lite version its at about 4-5 secs after the keyboard is detected. In the Desktop version it's whilst the splash screen is showing.

Further investigation shows that it can continue if you wait 15 secs or so, then press Esc and i or c for ignore or cancel twice. Often there is a message that the last partition is outside the disk.

The above line 55 is supposed to guard against the resize function running, but I think it is still being called because the SSD partitions append a 'p', just like the mmcblk0 devices do. If there are many partitions on the SSD, then /dev/nvme0n15 may exist and prevent it being resized, but on smaller installations it won't. Perhaps the firstboot script should also check for [ -b "${ROOT_DEV}p5" ] ?????

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions