Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been working on LFS and wanted to see if I could turn it into a bootable ISO but I am unsure of how to go about it exactly.
From what I understand, the file system will basically be in an initrd file? If so, how do I create that from my system? I understand it uses CPIO or something? If someone can point me in the right direction, I'd greatly appreciate it.
I've not used LFS so I'm not sure what is expected there. The standard way to create a bootable iso is to have all the proper sub-directories and files you need in one directory with the boot files and a menu properly written. Standard command:
If everything is in the right place and properly written, it should create a bootable iso file named lfs.iso from the directories/files in the LFS-dir directory. There are other ways, this is just one I've used.
Thanks, but what about the isolinux.cfg file? From what I see it points to a kernel, which is straightforward enough but then it points also to a initrd file, that's the thing I am stuck on unfortunately.
On most systems, there is an initrd file also in the /boot directory where the kernel resides although sometimes in the / of the filesystem. I've never used LFS but I expect that somewhere in the creation of your LFS you would need to create it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.