Files
infix/board/common/rauc-hooks.sh
Tobias Waldekranz 19672fcc58 rauc: Initial support
Add support for firmware updates via RAUC on aarch64. The created RAUC
bundle (images/infix-$BR2_ARCH.pkg) is signed with the same key used
to sign the raw FIT image.
2023-03-13 14:46:37 +01:00

19 lines
360 B
Bash
Executable File

#!/bin/sh
set -e
case "$1" in
slot-post-install)
[ "$RAUC_SLOT_CLASS" = "rootfs" ] || break
echo "Updating signature information for $RAUC_SLOT_BOOTNAME"
itbh=$(dirname $RAUC_IMAGE_NAME)/rootfs.itbh
cp $itbh /mnt/aux/$RAUC_SLOT_BOOTNAME.itbh
sync
;;
*)
exit 1
;;
esac