Keep auto-expand enabled in release images
The shrinking is only for faster image downloads. After flashing, the image should auto-expand to fill the SD card. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
### Raspberry Pi Improvements
|
### Raspberry Pi Improvements
|
||||||
- **Streamlined Image Creation**: `pull-image.sh` now handles everything
|
- **Streamlined Image Creation**: `pull-image.sh` now handles everything
|
||||||
- Auto-resizes rootfs to exactly 16GB (consistent images from any SD card)
|
- Auto-resizes rootfs to exactly 16GB (for smaller download)
|
||||||
- Disables Pi OS auto-expand
|
- Preserves auto-expand (image fills SD card on first boot)
|
||||||
- Compresses with zstd
|
- Compresses with zstd
|
||||||
- Optional .zst.zip wrapper for GitHub releases
|
- Optional .zst.zip wrapper for GitHub releases
|
||||||
- **16GB Minimum**: Pre-built images are now 16GB (was variable)
|
- **16GB Minimum**: Pre-built images are now 16GB (was variable)
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ lsblk
|
|||||||
sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.1.5.img.zst
|
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
|
## Step 10: Distribute
|
||||||
|
|
||||||
|
|||||||
@@ -204,8 +204,8 @@ sudo ./rpi/pull-image.sh /dev/sdX stegasoo-rpi-4.1.5.img.zst
|
|||||||
```
|
```
|
||||||
|
|
||||||
The `pull-image.sh` script automatically:
|
The `pull-image.sh` script automatically:
|
||||||
- Resizes rootfs to exactly 16GB (consistent image size)
|
- Resizes rootfs to exactly 16GB (for smaller download)
|
||||||
- Disables Pi OS auto-expand
|
- Preserves auto-expand (image fills SD card on first boot)
|
||||||
- Compresses with zstd for fast decompression
|
- Compresses with zstd for fast decompression
|
||||||
|
|
||||||
### 6. Distribute
|
### 6. Distribute
|
||||||
|
|||||||
@@ -123,25 +123,6 @@ else
|
|||||||
echo -e "${GREEN} Rootfs already ~16GB${NC}"
|
echo -e "${GREEN} Rootfs already ~16GB${NC}"
|
||||||
fi
|
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
|
# Pull image
|
||||||
# ============================================================================
|
# ============================================================================
|
||||||
|
|||||||
Reference in New Issue
Block a user