Skip to content

Commit be461c8

Browse files
committed
AB: Pack slot archive in post-build
1 parent 781ac48 commit be461c8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
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)