Skip to content

Error on Debian bookworm: role[$currentBoot]: bad array subscript #6

Description

@wolkenarchitekt

Using latest Raspberry Pi OS image (Debian bookworm):
https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2023-10-10/2023-10-10-raspios-bookworm-arm64-lite.img.xz

When running pi-boot-switch -I, I get the following error:

pi@raspberrypi:~ $ sudo pi-boot-switch -I
/usr/local/sbin/pi-boot-switch: line 304: role[$currentBoot]: bad array subscript

This seems caused by "boot" not mounted to /boot anymore but to /boot/firmware, see comparison with bullseye:

# bullseye
pi@raspberrypi:~ $ mount | grep boot
/dev/sda1 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)

# bookworm
pi@raspberrypi:~ $ mount | grep boot
/dev/sda1 on /boot/firmware type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,errors=remount-ro)

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