diff options
author | Petr Štetiar <ynezz@true.cz> | 2019-07-16 10:23:18 +0200 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-07-17 12:16:29 +0200 |
commit | 5e9a6d08d298502907e72e854e2a0514b3637527 (patch) | |
tree | bdfa821e95a91c5ed05cf4bf560baa4f2cabf304 | |
parent | bb27cde2579b0273c464e5ccd3dda7d14e84fd23 (diff) | |
download | upstream-5e9a6d08d298502907e72e854e2a0514b3637527.tar.gz upstream-5e9a6d08d298502907e72e854e2a0514b3637527.tar.bz2 upstream-5e9a6d08d298502907e72e854e2a0514b3637527.zip |
imx6: apalis: fix sysupgrade paths
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>
-rwxr-xr-x | target/linux/imx6/base-files/lib/upgrade/platform.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/target/linux/imx6/base-files/lib/upgrade/platform.sh b/target/linux/imx6/base-files/lib/upgrade/platform.sh index c3be9d5424..aecdf6c4b1 100755 --- a/target/linux/imx6/base-files/lib/upgrade/platform.sh +++ b/target/linux/imx6/base-files/lib/upgrade/platform.sh @@ -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 } |