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>
}
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
}