[SOLVED] How to Create an Installer in ISO Format for our LFS/BLFS ?
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
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 have tried these methods and none of them working:
1. Create a tarball, it cannot works with symlinks
2. Try to move them to flashdisk, can't work too with symlinks and for /media folder in '/' directory
3. Try mkisofs -> command not found
I am now trying clonezilla.
Please if anyone ever encounter this situation and want to create image / iso that exactly the same system they created for LFS/BLFS let me know how.
I'd suggest to just do the whole B/LFS thing one more time, and now right on the Target-HW in the old-fashioned way (as described in the Books) without QEMU. ("Nicht zur Strafe, nur zur Uebung" = Not as a punishment, just as an exercise :-) ).
yes actually I need to do it one more time. As punishment and exercise.. but, I think to create the ISO is important, why? laptop and computers have its own deterioration date, 3 years you have to buy a new laptop. So instead of do LFS every 3 years I can use ISO created. That is the reason behind why I want to create Image / ISO for my LFS OS.
Hopefully someone out there could help me. But I will do LFS again, wait for LFS 12 on September 1st 2022.
I am still doing some works with my OS in Qemu, fixing and learning more about BLFS here.
Well, sure the hardware starts rotting. But software rots even worse and faster. I'd not recommend to put some 3 year old LFS on some new HW, while the opposite is pretty good working: A couple of months ago i built some fresh B/LFS on a Dell Inspiron 8200, which is almost 20 years old (before, I had to change fans and also put in some PATA->SSD Adapter, because i was not able to get 2.5" PATA HDD at reasonable price/quality).
Anyway, it is of course possible to transfer a whole BLFS to another machine. I have no idea, what you're doing wrong - e.g. if you have no mkisofs command, try to locate the src package and build it.
Also afaik tar has no problems with symbolic links, so if you encounter problems, be more specific.
If you managed to put the rootfs to another machine, also be sure to do the right things concerning the bootloader.
I can see what you're doing. What I object to is the 'read only' element inherent in an iso. You can do an rsync backup and it's copied over in 20 minutes.
Well, sure the hardware starts rotting. But software rots even worse and faster. I'd not recommend to put some 3 year old LFS on some new HW, while the opposite is pretty good working: A couple of months ago i built some fresh B/LFS on a Dell Inspiron 8200, which is almost 20 years old (before, I had to change fans and also put in some PATA->SSD Adapter, because i was not able to get 2.5" PATA HDD at reasonable price/quality).
Anyway, it is of course possible to transfer a whole BLFS to another machine. I have no idea, what you're doing wrong - e.g. if you have no mkisofs command, try to locate the src package and build it.
Also afaik tar has no problems with symbolic links, so if you encounter problems, be more specific.
If you managed to put the rootfs to another machine, also be sure to do the right things concerning the bootloader.
cheers,
WK
Bonjour...
Yes on software rots faster, but the funny thing is software related vendor or companies make more money than hardware related one. I think it is because they do not need storage thus lessening the cost and making more profit. Quite out of topic, but for discussion purpose haha. PATA HDD is the best kind of Hard Disk to use for PlayStation 2.
I will install package so I can use mkisofs or use rsync as BusinessKid already said too.
Bootloader means Grub configuration for new machine.
Thanks all, if I manage to make an ISO or encounter problems I will post it here.
my update, I can mount the qcow2 image and see it to create the iso by using mkisofs, and the problems still existing:
1. Symlinks too many
2. A bit worry that the ISO created by mkisofs cannot work like it has to at my Host OS / on the real hardware (not on Qemu)
Any opinion?
(redo LFS on real hardware will be done when LFS 12.0 is out, I think it is a pity to redo now, I am still using the LFS OS in Qemu for learning Julia package.)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.