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

Raspberry Pi OS • Re: Getting started with rpi-image-gen is not easy

$
0
0
I'm a fairly-experienced software developer but getting started with rpi-image-gen and, more generally, trying to build a suitable image for a fast-booting, secure, incorruptible image is not coming easy.

I started with Getting Started which seemed simple enough. However, when i tried to install dependencies with install_deps.sh, the prompt returned immediately which left me feeling like it didn't work. Nevermind, I'll continue. But how? After the Dependencies section, there's no more instruction on how to proceed. No step-by-step that I can find. I can see that there's a build.sh file. I ran it. It failed and reported that I was missing some dependencies and should use install_deps.sh. I iterated by installing those dependencies manually, one of which cannot be found. More googling and I found that you have to build it from source. Hmm. Did that and got past the dependencies issues.

The next time I ran build, it started off well, but soon failed.

Code:

mount /home/user/rpi-image-gen/work/deb12-arm64-min/rootfs/sys: permission denied....E: run_chroot failed: E: mount /sys failed: 8192
Is there a better way? Can this all be containerized so that newbies can simply download a Docker container and start building? Where are the proper instructions on how to actually build custom images? I'm sure that will help.

Looking for guidance.

Many thanks in advance.


"Looking for guidance."

Perhaps dealing directly with the Developers responsible might get informed accurate advice?

https://github.com/raspberrypi/rpi-image-gen/issues



The first paragraph of the README says: "NOTE rpi-image-gen is under active development. Please report issues at https://github.com/raspberrypi/rpi-image-gen. Feature suggestions are welcome."

Perhaps Documentation that helps you would be a valid Feature Request?

Statistics: Posted by B.Goode — Thu Jul 31, 2025 2:29 pm



Viewing all articles
Browse latest Browse all 7854

Trending Articles