@@ -19,6 +19,7 @@ elif [ -d /lib/firmware/raspberrypi/bootloader ] || [ -d /lib/firmware/raspberry
1919else
2020 # Work from local git checkout
2121 LOCAL_MODE=1
22+ IGNORE_DPKG_CHECKSUMS=1
2223 FIRMWARE_ROOT=" ${script_dir} /firmware"
2324fi
2425
@@ -529,7 +530,6 @@ Options:
529530 Ignores the FREEZE_VERSION flag in bootloader and is intended for manual
530531 firmware updates.
531532 -h Display help text and exit
532- -i Ignore package checksums - for rpi-eeprom developers.
533533 -j Write status information using JSON notation (requires -m option)
534534 -l Returns the full path to the latest available EEPROM image file according
535535 to the FIRMWARE_RELEASE_STATUS and FIRMWARE_IMAGE_DIR settings.
@@ -915,7 +915,8 @@ AUTO_UPDATE_VL805=0
915915SILENT_UPDATE=0
916916MACHINE_OUTPUT=" "
917917JSON_OUTPUT=" no"
918- IGNORE_DPKG_CHECKSUMS=${LOCAL_MODE}
918+ # Ignore dpkg checksums by default so that rpi-update can install new binaries into /lib/firmware
919+ IGNORE_DPKG_CHECKSUMS=${IGNORE_DPKG_CHECKSUMS:- 1}
919920PACKAGE_INFO_DIR=" /var/lib/dpkg/info/"
920921if [ ! -d " ${PACKAGE_INFO_DIR} " ]; then
921922 IGNORE_DPKG_CHECKSUMS=1
@@ -945,7 +946,9 @@ while getopts A:abdhilf:m:ju:rs option; do
945946 ;;
946947 f) BOOTLOADER_UPDATE_IMAGE=" ${OPTARG} "
947948 ;;
948- i) IGNORE_DPKG_CHECKSUMS=1
949+ i)
950+ # Script default is 1 but this could have been set to zero in the defaults file
951+ IGNORE_DPKG_CHECKSUMS=1
949952 ;;
950953 j) JSON_OUTPUT=" yes"
951954 ;;
0 commit comments