Skip bootloader updates if rpi-eeprom package is too old

Skip the bootloader updates without stopping rpi-update of the firmware

See: https://github.com/raspberrypi/rpi-update/issues/28
This commit is contained in:
Tim Gover
2024-01-03 18:22:12 +00:00
committed by popcornmix
parent e85c4b6906
commit bbc8e9e388

View File

@@ -773,6 +773,15 @@ if [[ "${FW_REV}" == "" ]]; then
exit 1 exit 1
fi fi
if [ ! -d "/lib/firmware/raspberrypi/bootloader-2711/latest" ]; then
if [[ "${SKIP_BOOTLOADER}" != 1 ]]; then
# The chip specific firmware directory structure is required for rpi-eeprom updates
# RPi OS Bookworm or newer required.
SKIP_BOOTLOADER=1
echo "rpi-eeprom firmware package appears to be too old. Skipping bootloader updates"
fi
fi
if [[ ! -f "${FW_REVFILE}" ]]; then if [[ ! -f "${FW_REVFILE}" ]]; then
LOCAL_HASH=0 LOCAL_HASH=0
echo " *** We're running for the first time" echo " *** We're running for the first time"