Skip to content

Commit 360aacd

Browse files
authored
Merge pull request #133 from learmj/ab_dev
Add AB post-image
2 parents c6c1125 + be461c8 commit 360aacd

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

bin/runner

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ IGROOT:pre-image.sh \
4444
SRCROOT:pre-image.sh"
4545

4646
[post-image]="\
47-
DEVICE_ASSET:post-image.sh|IGROOT_device:post-image.sh \
48-
IMAGE_ASSET:post-image.sh|IGROOT_image:post-image.sh \
47+
DEVICE_ASSET:post-image.sh IGROOT_device:post-image.sh \
48+
IMAGE_ASSET:post-image.sh IGROOT_image:post-image.sh \
4949
IGROOT:post-image.sh \
5050
SRCROOT:post-image.sh"
5151

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
upd="${1}/update"
6+
rm -rf $upd
7+
mkdir -p $upd
8+
9+
[[ -f ${1}/system.sparse ]] || false
10+
[[ -f ${1}/boot.sparse ]] || false
11+
12+
ln -sf ../system.sparse ${upd}/system
13+
ln -sf ../boot.sparse ${upd}/boot
14+
15+
msg "Packing..."
16+
cd $upd && tar -I zstd -h -cf ${1}/update.tar.zst -- *

0 commit comments

Comments
 (0)