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>
This commit is contained in:
parent
bb27cde257
commit
5e9a6d08d2
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user