RPi-Distro / pi-gen

Tool used to create the official Raspberry Pi OS images
BSD 3-Clause "New" or "Revised" License
2.58k stars 1.61k forks source link

Could I use pi-gen to make an x86 Linux distribution? #647

Open GeoffLedak opened 1 year ago

GeoffLedak commented 1 year ago

Hi. I generally don't use GitHub issues to ask questions, but this seemed like the best place to ask. I put together a custom image for the Raspberry Pi using pi-gen. I liked using pi-gen and I have a decent understanding of it at this point. Would it be possible to use pi-gen to create an image for x86/x64 machines? Or would a different tool be a better option..

Thanks!

XECDesign commented 1 year ago

Yeah, we use it to generate the root filesystem for our x86 images.

I think it mostly depends on what you're after. If you want to stick close to Debian, it might make sense to use their tools.

https://wiki.debian.org/SystemBuildTools#General_tools

Even after you have a suitable rootfs, making a live cd from it still needs Debian's tools and integrating it all together is a bit of a pain.

GeoffLedak commented 1 year ago

Yeah, we use it to generate the root filesystem for our x86 images.

Which project are you referring to? Is the code for it available in a github repo?

I wouldn't need a Live CD per say, but I would need it to have some sort of install script so that a user could boot the image from a cd or flash drive and install the OS to a hard drive.

The Raspberry Pi image I made is basically Raspberry Pi OS Lite, with a few additional packages, and some scripts to configure some things.

I'd want to make the same thing but for x86/x64 machines.