ohhhhhhhhhhh (exclude linux-extra-rootfs.img build artifact)

This commit is contained in:
Linehu
2026-10-01 23:13:42 +08:00
parent 737a2cb0db
commit 1074962546
533 changed files with 133239 additions and 5460 deletions
+25
View File
@@ -0,0 +1,25 @@
#!/usr/bin/env bash
set -euo pipefail
ROOT=/mnt/d/Code/DEAICUP/Deshab
BB="$ROOT/CODE/linux/.cache/busybox"
mkdir -p "$ROOT/CODE/linux/.cache"
if [ ! -x "$BB" ]; then
echo "[bb] downloading busybox"
if ! wget -q -O "$BB" \
https://busybox.net/downloads/binaries/1.35.0-x86_64-linux-musl/busybox; then
echo "[bb] extract from initrd"
XT=$(mktemp -d)
(cd "$XT" && cpio -id < "$ROOT/SYSTEM/boot/linux-initrd.img" >/dev/null 2>&1) || true
if [ -x "$XT/bin/busybox" ]; then
cp "$XT/bin/busybox" "$BB"
fi
rm -rf "$XT"
fi
chmod +x "$BB"
fi
ls -l "$BB"
sed -i 's/\r$//' \
"$ROOT/CODE/linux/patch_boot_on_img.sh" \
"$ROOT/CODE/linux/guest/deshab-kde-session"
bash "$ROOT/CODE/linux/patch_boot_on_img.sh"
echo PATCH_BOOT_OK