build: drop redundant .sparse.img generation and update docs

This commit is contained in:
Luxferre
2026-10-25 07:24:08 +02:00
parent 60f7aedd08
commit a1e4f6ef8c
3 changed files with 8 additions and 14 deletions
+3 -7
View File
@@ -244,11 +244,10 @@ EOF
rm -rf "$ROOTFS/boot"
mv "$SAVED_BOOT" "$ROOTFS/boot"
echo "[4/5] Assembling partitioned MBR raw image and Android sparse image..."
echo "[4/5] Assembling partitioned MBR raw image..."
RAW_IMG="/images/bananarchy-$TARGET_DEVICE.img"
SPARSE_IMG="/images/bananarchy-$TARGET_DEVICE.sparse.img"
TOTAL_MB=$(( 1 + BOOT_MB + ROOT_MB ))
rm -f "$RAW_IMG" "$SPARSE_IMG"
rm -f "$RAW_IMG" "/images/bananarchy-$TARGET_DEVICE.sparse.img" "/images/nokia-argon-sxmo.sparse.img"
truncate -s "${TOTAL_MB}M" "$RAW_IMG"
BOOT_SECTORS=$(( BOOT_MB * 2048 ))
@@ -266,11 +265,8 @@ SFEOF
dd if="$ROOT_IMG" of="$RAW_IMG" bs=1M seek=$(( 1 + BOOT_MB )) conv=notrunc,sparse status=none
rm -f "$BOOT_IMG" "$ROOT_IMG"
img2simg "$RAW_IMG" "$SPARSE_IMG"
if [ "$TARGET_DEVICE" = "nokia-argon" ]; then
ln -f "$RAW_IMG" "/images/nokia-argon-sxmo.img"
ln -f "$SPARSE_IMG" "/images/nokia-argon-sxmo.sparse.img"
fi
echo "[5/5] Restoring host user ownership on $ROOTFS for easy host editing..."
@@ -278,5 +274,5 @@ SFEOF
chmod -R u+rwX "$ROOTFS"
echo "Built Bananarchy images for $TARGET_DEVICE:"
ls -lh "/images/boot-bananarchy-$TARGET_DEVICE.img" "$RAW_IMG" "$SPARSE_IMG"
ls -lh "/images/boot-bananarchy-$TARGET_DEVICE.img" "$RAW_IMG"
'