test fix
Some checks failed
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / build-and-push-rootfs-archives (push) Failing after 8m55s
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build & Push Docker Images (bookworm) (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build & Push Docker Images (bullseye) (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / Build & Push Docker Images (trixie) (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-changelogs (push) Has been skipped
Build, Upload RootFS, and Push Docker Images, update changelog, update build info. / generate-build-info (push) Has been skipped

This commit is contained in:
2025-12-20 11:04:54 -08:00
parent 9f820dc9bd
commit 64daf2db48
3 changed files with 86 additions and 9 deletions

View File

@@ -4,14 +4,14 @@ set -euo pipefail
DEBIAN_RELEASE="${VERSION:-}"
ROOTFS_DIR="debian-${DEBIAN_RELEASE}"
OUTPUT_DIR="/output"
TARBALL="${OUTPUT_DIR}/$DEBIAN_RELEASE/debian-${DEBIAN_RELEASE}.tar.bz2"
TARBALL="${OUTPUT_DIR}/debian-${DEBIAN_RELEASE}.tar.bz2"
echo "[INFO] Bootstrapping Debian $DEBIAN_RELEASE rootfs..."
apt-get update
apt-get install -y --no-install-recommends debootstrap bzip2
debootstrap --verbose --variant=minbase --components=main,contrib,non-free \
--include=apt,ca-certificates --arch=amd64 "$DEBIAN_RELEASE" "$ROOTFS_DIR" \
--include=apt,ca-certificates,software-properties-common,bash,wget,curl,nano,locales --arch=amd64 "$DEBIAN_RELEASE" "$ROOTFS_DIR" \
http://deb.debian.org/debian/
for dir in dev dev/pts proc sys; do
@@ -41,7 +41,7 @@ echo "[INFO] Rootfs size:"
du -sh "$ROOTFS_DIR"
echo "[INFO] Creating compressed base image..."
mkdir -p "$OUTPUT_DIR/$DEBIAN_RELEASE"
mkdir -p "$OUTPUT_DIR"
tar -cjf "$TARBALL" -C "$ROOTFS_DIR" .
ls -lh "$TARBALL"