mirror of
https://github.com/ps5-linux/ps5-linux-image.git
synced 2026-07-16 01:50:40 +00:00
steamos: tar --zstd instead of bsdtar
This commit is contained in:
@@ -138,7 +138,10 @@ echo "=== SteamOS: install linux-ps5 kernel pkg ==="
|
||||
PKG=$(ls /kernel-debs/linux-ps5-*.pkg.tar.zst 2>/dev/null | head -1)
|
||||
[ -z "$PKG" ] && { echo "ERROR: no linux-ps5 pkg.tar.zst in /kernel-debs/"; exit 1; }
|
||||
TMP=$(mktemp -d)
|
||||
bsdtar -xf "$PKG" -C "$TMP"
|
||||
# Upstream image-builder doesn't ship libarchive-tools (bsdtar). GNU tar
|
||||
# 1.32+ handles .pkg.tar.zst via --zstd; image-builder runs Ubuntu 24.04
|
||||
# with tar 1.35.
|
||||
tar --zstd -xf "$PKG" -C "$TMP"
|
||||
for d in usr boot etc; do
|
||||
[ -d "$TMP/$d" ] && cp -a "$TMP/$d"/. "$CHROOT/$d/" 2>/dev/null || true
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user