imx6: apalis: fix sysupgrade paths
authorPetr Štetiar <ynezz@true.cz>
Tue, 16 Jul 2019 08:23:18 +0000 (10:23 +0200)
committerPetr Štetiar <ynezz@true.cz>
Wed, 17 Jul 2019 10:16:29 +0000 (12:16 +0200)
We can't use $board_name in sysupgrade paths for kernel and rootfs as we
currently generate one image which could be used on two different base
boards.

Signed-off-by: Petr Štetiar <ynezz@true.cz>
target/linux/imx6/base-files/lib/upgrade/platform.sh

index c3be9d542416d111bcb86d0b42238552827450f3..aecdf6c4b1acfbdb178e4e974fbfa4c6e8cbff54 100755 (executable)
@@ -23,12 +23,9 @@ apalis_copy_config() {
 }
 
 apalis_do_upgrade() {
-       local board_name=$(board_name)
-       board_name=${board_name/,/_}
-
        apalis_mount_boot
-       get_image "$1" | tar Oxf - sysupgrade-${board_name}/kernel > /boot/uImage
-       get_image "$1" | tar Oxf - sysupgrade-${board_name}/root > $(rootpart_from_uuid)
+       get_image "$1" | tar Oxf - sysupgrade-apalis/kernel > /boot/uImage
+       get_image "$1" | tar Oxf - sysupgrade-apalis/root > $(rootpart_from_uuid)
        sync
        umount /boot
 }