diff --git a/bin/runner b/bin/runner index 0555cae6..609a0ec9 100755 --- a/bin/runner +++ b/bin/runner @@ -44,8 +44,8 @@ IGROOT:pre-image.sh \ SRCROOT:pre-image.sh" [post-image]="\ -DEVICE_ASSET:post-image.sh|IGROOT_device:post-image.sh \ -IMAGE_ASSET:post-image.sh|IGROOT_image:post-image.sh \ +DEVICE_ASSET:post-image.sh IGROOT_device:post-image.sh \ +IMAGE_ASSET:post-image.sh IGROOT_image:post-image.sh \ IGROOT:post-image.sh \ SRCROOT:post-image.sh" diff --git a/image/gpt/ab_userdata/post-image.sh b/image/gpt/ab_userdata/post-image.sh new file mode 100755 index 00000000..6791e90c --- /dev/null +++ b/image/gpt/ab_userdata/post-image.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +set -eu + +upd="${1}/update" +rm -rf $upd +mkdir -p $upd + +[[ -f ${1}/system.sparse ]] || false +[[ -f ${1}/boot.sparse ]] || false + +ln -sf ../system.sparse ${upd}/system +ln -sf ../boot.sparse ${upd}/boot + +msg "Packing..." +cd $upd && tar -I zstd -h -cf ${1}/update.tar.zst -- *