biggezy
Posts: 1
Joined: Sat Jun 09, 2018 1:50 pm

Want to build a custom Raspbian .img, but would like to learn the foundation...

Sat Jun 09, 2018 2:06 pm

Hi all,

My goal is to ultimately create a ready-to-flash SD card .img file of Raspbian that contains custom programs/packages built in so that when I boot up the Pi, it'll automatically run my programs, show custom splash screen, etc. Doing some research, I think building on top of Pi-Gen is the way to go (correct me if i'm wrong).

But before doing that, I'd like to learn the building blocks that would help me understand how to do this rather than being told how.

Is there any specific material that anyone would recommend reading to understand how the Debian OS/packaging/file system/boot up process/etc. works that'll help me with this task.

Currently reading: Debian GNU/Linux Installation guide and Debian boot process material on the web

Thanks!

User avatar
bensimmo
Posts: 4152
Joined: Sun Dec 28, 2014 3:02 pm
Location: East Yorkshire

Re: Want to build a custom Raspbian .img, but would like to learn the foundation...

Sat Jun 09, 2018 3:31 pm

The alternative is to take Raspbian or Raspbian Lite, add/remove and customise as you want.
And then just clone that.

Which is what we pretty much do when we download from RPi website and write it to SD.

We don't install, but just copy an image.

epoch1970
Posts: 3548
Joined: Thu May 05, 2016 9:33 am
Location: Paris, France

Re: Want to build a custom Raspbian .img, but would like to learn the foundation...

Sat Jun 09, 2018 3:47 pm

"S'il n'y a pas de solution, c'est qu'il n'y a pas de problème." Les Shadoks, J. Rouxel

davesteele
Posts: 57
Joined: Wed Nov 30, 2016 4:16 pm

Re: Want to build a custom Raspbian .img, but would like to learn the foundation...

Sat Jun 09, 2018 10:57 pm

I'll say two things.

It's pretty easy to self-host pi-gen on a 32 GB SD Raspbian card. It's actually much faster on a Pi than on my desktop, due to QEMU overhead.

Pi-gen is a lightweight wrapper around the command line process for generating the image. The layout is easy to follow.

Return to “Raspbian”