aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/imx6/base-files/lib/upgrade
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2019-07-16 10:23:18 +0200
committerPetr Štetiar <ynezz@true.cz>2019-07-17 12:16:29 +0200
commit5e9a6d08d298502907e72e854e2a0514b3637527 (patch)
treebdfa821e95a91c5ed05cf4bf560baa4f2cabf304 /target/linux/imx6/base-files/lib/upgrade
parentbb27cde2579b0273c464e5ccd3dda7d14e84fd23 (diff)
downloadupstream-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>
Diffstat (limited to 'target/linux/imx6/base-files/lib/upgrade')
-rwxr-xr-xtarget/linux/imx6/base-files/lib/upgrade/platform.sh7
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
}