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.
Hey guys. Currently running in the chrooted environment. I see we are to run make on the directory that I understand to be $LFS/sources/Linux-5.2.8. Problem is I deleted the directory after making in chapter 5. Was I not supposed to be deleting these directories after each compilation? It said to delete it unless otherwise told not to. With that being said, what would my steps be to remedying this situation?
Hi
You will still have the linux tarball, just re untar again, and do this with all the packages. Yes you are correct to remove the untarred dir wwhen it is built.
Am I not supposed to be using root in the chrooted environment? When trying to untar them I end up with
Code:
(lfs chroot) root:/sources# ls linux-5.2.8.tar.xz
linux-5.2.8.tar.xz
(lfs chroot) root:/sources# tar -xvf linux-5.2.8.tar.xz
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
(lfs chroot) root:/sources#
So strange I did try that again to no avail. I think at this point it wouldn't hurt to start from scratch. A good learning experience on the second pass.
If you have to start from scratch, save some time and try using Keith's tools-tarballs from his LiveCD project. 8.2 can be used to build either systemd/sysV. 9.0 can only be used for sysV, as is because ch5 sysV no longer has util-linux. You could however build it once chrooted.
Set the $LFS, make the /mnt/lfs/tools dir, untar the tools tarball to /mnt/lfs/tools and continue from ch6.2.
And yes, you should always remove the dir from an untarred source after installing the package.
So basically untar, make, make install and remove the dir.
Last edited by hendrickxm; 10-19-2019 at 03:35 PM.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,156
Rep:
Quote:
Originally Posted by hendrickxm
... 9.0 can only be used for sysV, as is because ch5 sysV no longer has util-linux ...
Noticed util-linux was dropped from tool chain, i have no interest in systemd but i will put util-linux back into the 9.0 tools on the cd, 'cos i'm a nice guy i need to make some minor tweaks to it anyway, i'll post in the bootcd thread when its done. Thanks for that info.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.