Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4873

Raspberry Pi OS • Re: Installing new software directly to an image in a chroot (Botspot)

$
0
0
Why reinvent the wheel?

It's a trivial task with Image File Utilities:

Code:

root@raspberrypi:~# ./image-shrink 2024-11-19-raspios-bookworm-arm64-lite.img 5000   # Add 5GB of free space to image fileShrink 2024-11-19-raspios-bookworm-arm64-lite.img [Additional MB = 5000] (y/n)? y...root@raspberrypi:~# ./image-chroot 2024-11-19-raspios-bookworm-arm64-lite.img   # chroot to image filechroot to 2024-11-19-raspios-bookworm-arm64-lite.img (y/n)? yAttempting to chroot to 2024-11-19-raspios-bookworm-arm64-lite.imgHost root filesystem is available at /host-root-fsUse exit or ^D to terminate chrootroot@raspberrypi:/# apt-get install ffmpeg   # Install ffmpeg...root@raspberrypi:/# exit   # Exit chrootexitExited chroot to 2024-11-19-raspios-bookworm-arm64-lite.imgroot@raspberrypi:~# ./image-shrink 2024-11-19-raspios-bookworm-arm64-lite.img 0   # Remove excess free space from image fileShrink 2024-11-19-raspios-bookworm-arm64-lite.img [Additional MB = 0] (y/n)? y...

Statistics: Posted by RonR — Fri Dec 20, 2024 10:59 pm



Viewing all articles
Browse latest Browse all 4873

Trending Articles