diff --git a/board/common/mkrauc-status.sh b/board/common/mkrauc-status.sh new file mode 100755 index 00000000..0560e79c --- /dev/null +++ b/board/common/mkrauc-status.sh @@ -0,0 +1,35 @@ +#!/bin/sh + +set -e + +# Bootstrap a RAUC status file showing the newly created image +# installed to both the primary and secondary slots. This then bundled +# in the aux partition in mkdisk.sh, so that RAUC (on the target) can +# always report the installed versions. +rauc info --no-verify --output-format=shell $1 >/tmp/rauc-$$.info +. /tmp/rauc-$$.info +rm /tmp/rauc-$$.info +tstamp=$(date -u +%FT%TZ) +cat <$work/rauc.info -. $work/rauc.info -tstamp=$(date -u +%FT%TZ) -cat >$work/rauc.status <"$BINARIES_DIR/rauc.status" $common/mkdisk.sh -a $BR2_ARCH -s $DISK_IMAGE_SIZE fi