Skip to content

Releases: KubaTaba1uga/bash_modify_rpi_img_without_boot

First release

04 Feb 05:35

Choose a tag to compare

Overview

This is the first official release of bash_modify_img_file_without_boot, a Bash script that allows users to mount and modify disk image files without booting them. The script provides an easy way to chroot into an image, with optional ARM64 QEMU emulation support for cross-architecture modifications.

Features:

✅ Mount and modify Linux-based disk images (e.g., Raspberry Pi OS)
✅ Automatic loop device setup and partition mounting
✅ Optional ARM64 QEMU emulation for working with ARM images
✅ Ability to run scripts inside the chroot environment
✅ Safe cleanup to avoid orphaned mounts

Usage:

./sandbox.sh <path-to-image-file> [--arm64] [--script <path-to-script>]
  • --arm64 → Enables QEMU emulation for ARM64 images
  • --script <script-file> → Executes a script inside the chroot instead of launching an interactive Bash shell

Example:

./sandbox.sh /tmp/rpi-lite.img --arm64 --script ./modify.sh

This mounts rpi-lite.img, enables ARM64 emulation, and runs modify.sh inside the chroot.

Changelog:

🆕 First stable version of the script
🛠️ Added argument parsing for --arm64 and --script
⚡ Improved cleanup process to prevent stale loop devices