diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index c33ce15..ea17b2c 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -9,8 +9,8 @@ ### Raspberry Pi Improvements - **Streamlined Image Creation**: `pull-image.sh` now handles everything - - Auto-resizes rootfs to exactly 16GB (consistent images from any SD card) - - Disables Pi OS auto-expand + - Auto-resizes rootfs to exactly 16GB (for smaller download) + - Preserves auto-expand (image fills SD card on first boot) - Compresses with zstd - Optional .zst.zip wrapper for GitHub releases - **16GB Minimum**: Pre-built images are now 16GB (was variable) diff --git a/rpi/BUILD_IMAGE.md b/rpi/BUILD_IMAGE.md index 2b56cdf..8c8a659 100644 --- a/rpi/BUILD_IMAGE.md +++ b/rpi/BUILD_IMAGE.md @@ -110,7 +110,7 @@ lsblk sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.1.5.img.zst ``` -The script automatically resizes rootfs to 16GB, disables auto-expand, and compresses. +The script automatically resizes rootfs to 16GB (for smaller download), preserves auto-expand, and compresses. ## Step 10: Distribute diff --git a/rpi/README.md b/rpi/README.md index 5348a3c..1eaef86 100644 --- a/rpi/README.md +++ b/rpi/README.md @@ -204,8 +204,8 @@ sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.1.5.img.zst ``` The `pull-image.sh` script automatically: -- Resizes rootfs to exactly 16GB (consistent image size) -- Disables Pi OS auto-expand +- Resizes rootfs to exactly 16GB (for smaller download) +- Preserves auto-expand (image fills SD card on first boot) - Compresses with zstd for fast decompression ### 6. Distribute diff --git a/rpi/pull-image.sh b/rpi/pull-image.sh index 05f6cc1..b290aa6 100755 --- a/rpi/pull-image.sh +++ b/rpi/pull-image.sh @@ -123,25 +123,6 @@ else echo -e "${GREEN} Rootfs already ~16GB${NC}" fi -# ============================================================================ -# Disable auto-expand on first boot -# ============================================================================ -echo -echo -e "${YELLOW}Disabling auto-expand...${NC}" -TEMP_ROOT=$(mktemp -d) -mount "$ROOT_PART" "$TEMP_ROOT" - -# Remove resize2fs_once service if it exists -rm -f "$TEMP_ROOT/etc/init.d/resize2fs_once" -rm -f "$TEMP_ROOT/etc/rc3.d/S01resize2fs_once" - -# Disable the systemd resize service -rm -f "$TEMP_ROOT/etc/systemd/system/multi-user.target.wants/rpi-resizerootfs.service" - -umount "$TEMP_ROOT" -rmdir "$TEMP_ROOT" -echo -e "${GREEN} Auto-expand disabled${NC}" - # ============================================================================ # Pull image # ============================================================================