From a1e2bc92e55eb6afe0dfeb2abb935b547c2617fe Mon Sep 17 00:00:00 2001 From: Bug Bounty Zip <133497067+BugBountyzip@users.noreply.github.com> Date: Wed, 27 May 2026 15:19:17 +0300 Subject: [PATCH] Reduce Kali release image scope --- .github/workflows/build-image.yml | 2 +- build_image.sh | 4 ++-- distros/kali/image.yaml | 5 +++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index bdaae86..dc58f99 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -48,7 +48,7 @@ jobs: build: needs: matrix runs-on: self-hosted - timeout-minutes: 240 + timeout-minutes: 360 permissions: contents: write diff --git a/build_image.sh b/build_image.sh index bc3dc5b..f23814a 100755 --- a/build_image.sh +++ b/build_image.sh @@ -19,7 +19,7 @@ usage() { echo "Options:" echo " --distro Distribution to build: ubuntu2604, arch, cachyos, kali, all (default: ubuntu2604)" echo " --kernel Path to kernel source directory (default: auto-clone to work/linux/)" - echo " --img-size Disk image size in MB (default: 12000, 32000 for --distro all, 98304 for kali)" + echo " --img-size Disk image size in MB (default: 12000, 32000 for --distro all, 49152 for kali)" echo " --clean Remove all cached build artifacts and start from scratch" echo " --clean-only Remove all cached build artifacts and exit" echo " --kernel-only Build and package the kernel only, then exit" @@ -65,7 +65,7 @@ if [ "$DISTRO" = "all" ] && [ "$IMG_SIZE" = "12000" ]; then IMG_SIZE=32000 fi if [ "$DISTRO" = "kali" ] && [ "$IMG_SIZE" = "12000" ]; then - IMG_SIZE=98304 + IMG_SIZE=49152 fi if [ -z "$FORMAT" ]; then diff --git a/distros/kali/image.yaml b/distros/kali/image.yaml index 1cdde0b..2dcaac1 100644 --- a/distros/kali/image.yaml +++ b/distros/kali/image.yaml @@ -28,9 +28,10 @@ packages: sets: - packages: - # Full Kali desktop and toolset + # Official Kali desktop and default toolset. The full "everything" set is + # too large for reliable release builds on the self-hosted runner. - kali-desktop-xfce - - kali-linux-everything + - kali-linux-default - kali-defaults - kali-defaults-desktop - kali-themes