LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Password
Bedrock Linux This forum is for the discussion of Bedrock Linux.

Notices


Reply
  Search this Thread
Old 10-06-2019, 03:33 AM   #1
hendrickxm
Member
 
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled
LFS-tools


I am using bedrock to build LFS starting from ch6.7 (building final linux-headers).
From then on, instead of doing everything in the chroot, I exit the chroot and use pkgtools and cruxports4slack to build the packages.
In the chroot I would do
Code:
pkgmk
to build from Pkgfiles, edited and borrowed from NuTyX. Instead I do
Code:
sudo strat -r lfs pkgmk
After finishing ch5 aka the tools, I copy tar-1.13 to /bedrock/strata/lfs/bin/ from the slackware tar package.
I copy installpkg to /bedrock/strata/lfs/sbin/ and create /bedrock/strata/lfs/bin/which using the script here: http://www.linuxfromscratch.org/blfs...ral/which.html.
I add a symlink to /tools/bin/du inside the chroot.
Code:
ln -sv /tools/bin/du /bin
and the lfs-tools is ready to go. From then on I can build packages.
So my bedrock stratum is at /bedrock/strata/lfs and this contains the /tools directory, effectively this is an extracted pre-compiled tools-tarball.
Because the tools are used to build the final system, /bedrock/strata/lfs is indeed the stratum but you need to add /tools/sbin, /tools/usr/sbin, /tools/bin and /tools/usr/bin to PATH and cross-bin in the /bedrock/etc/bedrock.conf file.

You add the stratum as decribed in https://bedrocklinux.org/0.7/workflows.html
You can still enter the chroot by using brl disable lfs and chrooting.
At the moment I still re-chroot after building glibc for example.

This method might not be useful for everyone who builds LFS but in my case, I see this as an easy way to test more than one LFS-release and as a way to build a newer glibc package and use it in the final system.

My lfs(-tools) stratum is just a temporary tools up until 6.6 for building the glibc-package.
I then have another lfs-stratum that contains a completely build. Because of pkgtools, I can remove almost everything in my stratum and rebuild it.

Last edited by hendrickxm; 10-07-2019 at 01:37 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gcc 4.6.1 can't Find in /mnt/lfs/tools on LFS verison 7.0 using LFS_TGT xerofoify Linux From Scratch 20 08-03-2012 12:55 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 02:26 PM
lfs:/mnt/lfs/sources/util-linux-2.12r$ cp -v mount/{,u}mount text-utils/more /tools/b arougen02 Linux From Scratch 5 03-19-2008 01:15 PM
lfs:/mnt/lfs/sources/util-linux-2.12r$ cp -v mount/{,u}mount text-utils/more /tools/b arougen02 Linux - Newbie 2 03-16-2008 11:16 AM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 03:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bedrock Linux

All times are GMT -5. The time now is 01:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration