Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Bedrock Linux
User Name
Bedrock Linux This forum is for the discussion of Bedrock Linux.


  Search this Thread
Old 10-06-2019, 04:33 AM   #1
Registered: Feb 2014
Posts: 344

Rep: Reputation: Disabled

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
to build from Pkgfiles, edited and borrowed from NuTyX. Instead I do
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:
I add a symlink to /tools/bin/du inside the chroot.
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
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 02:37 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:55 PM
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 03: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 02: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 12:16 PM
LFS 3.2 book, but LFS packages 3.0 CragStar Linux From Scratch 2 04-07-2002 04:15 PM > Forums > Linux Forums > Linux - Distributions > Bedrock Linux

All times are GMT -5. The time now is 05:45 AM.

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