SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Thanks, great stuff. I managed to use a livecd, added tar-1.13 and the installpkg script. Then used installpkg --root /mnt/chroot *.txz and chrooted into it.
Now I will rebuild in the chroot.
Do you have the packages and slackbuilds you have used and build and can you share them?
Compared to LFS, what packages are absolutely needed to have a system that is capable to rebuild itself. I see elflibs, aaa_base, pkgtools, etc, bin, net-tools, perhaps sudo, curl, openssl, ...?
Last edited by hendrickxm; 03-14-2016 at 03:01 AM.
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,547
Rep:
Read the memos called *-first and *-second I already posted, the minimum is explained to be able to build sfs and remove 'tools'.I noticed you forgot 'which'. By the end of *-second memo, you should be able to remove 'tools',boot in your new sfs and build everything. I hope the answer is clear for you?
Last edited by nobodino; 03-14-2016 at 12:10 PM.
Reason: typo
An apology. . .In the last batch of scripts I inadvertently sent the original sfsinit.sh instead of the debugged one.
You seem to have accomodated it, but . . . .
Attached are a corrected sfsinit.sh, an new build5.list, and sfsbuild5.sh.
The sh is the beginning of collapsing all my sh's down to one or two.
Build5.list is the X system broken out to individual files. Hope I got them all
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,547
Rep:
Another update to Slackware From Scratch.
I simplified the process and merged the different steps (sfsbuild0 to sfsbuild4) and there's only one build.list to achieve the build process.
There's less tricks: a real kernel-header package, adjust, sfselflibs are treated as package.
It works on the last current slackware version 01/04/2016 and LFS version 13/03/2016.
Last edited by nobodino; 04-04-2016 at 01:23 AM.
Reason: typo
Please check scripts-sfs.sh.txt. When I run it, I don't get the same
results that you show in the README file. Otherwise looks great.
I've been slowly working on something like this, but have had limited
time for it. Keep up the good work!
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,547
Rep:
Test with these files.
Only 3 scripts remains: initsfs.sh (and not sfsinit.sh), ch6prep.sh and sfsbuild1.sh.
All other scripts are secondary scripts called by the 3 ones above.
I haven't had much time recently for this, but I did review your latest.
Looks good. Haven't been able to try it yet.
The attachment is something I cooked up while waiting for my car to be
repaired. It goes back to LFS and builds a tools directory using only
Slackware64 current sources, except for check and dejagnu.
Distribution: slackware, slackware from scratch, LFS, slackware [arm], linux Mint...
Posts: 1,547
Rep:
Another update to Slackware From Scratch.
It works on the lastet current slackware version 15/04/2016 and LFS version 12/04/2016.
The file for the patches has not changed.
This time , the process is a bit different, no more sub-scripts.
The 3 scripts are built with procedures: one to init, one to chroot, one to build, and that is all.
The differences are in the details, so look carefully.
It doesn't work because you are already redirecting stdin. Can't do it
again in the same loop. The attached patch contains one solution:
(amongst other things. I'm doing a 64 bit build where you are doing 32 bit.)
Look at the patch from "LISTFILE =" down. What I did was read the list into
an array, then processed the array instead of trying to reuse stdin. Got the
idea from the "Advanced Bash Scripting Guide", which I believe is available in french.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.