Skip to content

sdm 10.0 and earlier incorrect /boot/firmware handling #144

@gitbls

Description

@gitbls

A fairly serious bug has been uncovered in sdm with respect to Bookworm. Bookworm IMGs customized with 'apt upgrade' and kernel 6.1.58 gets installed, that is, were updated to 6.1.58-1+rpt2 kernel during an IMG customize, are not really running the 6.1.58 kernel.

If the system was booted and runnng when the upgrade to 6.1.58 was done, there is no problem.

IDENTFICATION

You can identify problematic systems that are booted and running by:

  • Determine the latest kernel version that is installed: sudo apt search linux-image | grep installed
  • Determine what kernel is running: uname -r

If the version of the kernel running does NOT match the latest installed kernel, the system needs to be repaired.

REPAIRING THE RUNNING SYSTEM

  • Install sdm V10.1 or later on your host:
    curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash
  • Determine which kernels are installed: sudo apt search linux-image | grep 6.1.58 | grep installed
  • Update each installed kernel:
    sudo apt install --reinstall linux-image 6.1.0-rpi6-rpi-v8 linux-headers-6.1.0-rpi6-rpi-v8

Note that on 64-bit systems you should update both the -v8 and -2712 kernels.

REPAIRING SDM

  • Install sdm V10.1 or later on your host:
    curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash
  • Delete and recreate any affected customized IMGs, or alternatively use the above REPAIRING THE RUNNING SYSTEM while doing a --explore on the IMG with sdm 10.1

REPAIRING CUSTOMIZED IMGs

First update sdm on the host per above, then:

  • sdm --explore /path/to/img.img using sdm V10.1 or later
  • Determine which kernels are installed: sudo apt search linux-image | grep 6.1.58 | grep installed
  • apt install --reinstall linux-image 6.1.0-rpi6-rpi-v8 linux-headers-6.1.0-rpi6-rpi-v8

WHAT WAS BROKEN

Long story short: sdm was not updated correctly for /boot/firmware in Bookworm

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