PiShrink is a bash script designed to automatically shrink Raspberry Pi images, making them easier to store and faster to flash onto SD cards. Once the shrunk image is booted, it will automatically resize itself to match the maximum capacity of the target SD card. The tool also supports compression using gzip and xz, with an option for parallel compression across multiple CPU cores to improve speed.
Key points:
- Automatic shrinking of Raspberry Pi images
- Boot-time filesystem expansion to full SD card size
- Support for parallel multi-core compression
- Compatibility with Linux, Windows (via WSL 2), and macOS (via Docker)
Amber is a language that transpiles to bash, offering a more readable and maintainable way to script while retaining bash's ubiquity. The article discusses a recent FOSDEM 2026 presentation on best practices for using Amber, including examples of its Python-like syntax and dependency checking features. Zsh support is also in development.