bcm27xx: base-files: fix platform_copy_config
authorÁlvaro Fernández Rojas <noltari@gmail.com>
Wed, 31 Jan 2024 11:36:49 +0000 (12:36 +0100)
committerÁlvaro Fernández Rojas <noltari@gmail.com>
Thu, 1 Feb 2024 08:58:17 +0000 (09:58 +0100)
Only bcm2708 and bcm2709 use "kernel.img" file name.
bcm2710 and bcm2711 use "kernel8.img" and bcm2712 uses "kernel_2712.img".

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
target/linux/bcm27xx/base-files/lib/upgrade/platform.sh

index a48b7cc08a3ee534615521e61d3da830bbeee390..956bc1c7886ae1f8ee2c65d979219b14cd438aeb 100644 (file)
@@ -90,7 +90,7 @@ platform_copy_config() {
 
        if export_partdevice partdev 1; then
                mkdir -p /boot
-               [ -f /boot/kernel.img ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot
+               [ -f "/boot/kernel*.img" ] || mount -t vfat -o rw,noatime "/dev/$partdev" /boot
                cp -af "$UPGRADE_BACKUP" "/boot/$BACKUP_FILE"
                tar -C / -zxvf "$UPGRADE_BACKUP" boot/cmdline.txt boot/config.txt
                sync