LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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

Reply
 
Search this Thread
Old 05-30-2012, 06:37 PM   #16
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 81

Original Poster
Rep: Reputation: 27

I've put the 'adjusting' and 'readjusting' back in book version 7.1 and updated lfsa on github. Hopefully this will get rid of the cp error.

In 'current_development' adjusting in chapter05 has gone away and 'readjusting' in chapter06 has become 'adjusting'. No wonder I got confused!

jb.
 
1 members found this post helpful.
Old 05-31-2012, 10:23 AM   #17
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 81

Original Poster
Rep: Reputation: 27
The github version of lfsa should now deal with version 7.1 correctly.
 
Old 05-31-2012, 03:55 PM   #18
lich000king
Member
 
Registered: Jun 2011
Posts: 56

Rep: Reputation: Disabled
Quote:
Ah, I guess you are building 7.1, are you?
I am indeed.

Actually I am trying to write a kind of wrapper script that does the whole process using your scripts. This turned out to be more difficult than I thought, but it's about to become good.

Quote:
With regard to the config file, you could change the lfsa script so that it doesn't use dialog. Then it won't display anything - but of course you won't be able to change anything.
Well, the config variables are initialized in lfsa, e.g. on line 76:
Code:
TZ=$TZ
So if, in my script, I have
Code:
export TZ=Europe/Zurich
.lfsa
then TZ will actually be set to what I want.
Would you mind doing the following two adjustment?
- Add a switch, e.g. "nomenu" such that
Code:
./lfsa --nomenu
would skip the menu (i.e. equivalent to directly continuing without making any changes in the menu)
Or maybe it would be possible to give lfsa the config file, like
Code:
./lfsa --configfile=~/LFS.conf
,
then I could just write this file, that would be good too.
- change "BOOK_VERSION=blank" on line 80 to "BOOK_VERSION=$BOOK_VERSION"

The thing is my script also downloads the LFS-BuildScripts, so editing .lfsa by hand would mean I have to stop my script at some point.

Quote:
The github version of lfsa should now deal with version 7.1 correctly.
Yes, chapter 5 ran through without problems. Thanks!

I will post my script here when it works.
I can then also try the current development book. I'm using 7.1 at the moment so I don't need to check for book updates or redownload the sources.
 
Old 05-31-2012, 04:15 PM   #19
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 81

Original Poster
Rep: Reputation: 27
Quote:
Add a switch, e.g. "nomenu" such that
./lfsa --nomenu
or

Quote:
Or maybe it would be possible to give lfsa the config file, like
./lfsa --configfile=~/LFS.conf
Either of those would be possible.

Choose one of them.

jb.
 
Old 06-01-2012, 02:51 AM   #20
lich000king
Member
 
Registered: Jun 2011
Posts: 56

Rep: Reputation: Disabled
I would prefer the second.
 
Old 06-01-2012, 12:10 PM   #21
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 81

Original Poster
Rep: Reputation: 27
I've made the changes. This is the way it works now -

if you do ./lfsa you get the menu displayed, as before and the name ~/LFS.conf

./lfsa ~/LFS.conf will use the values in the specified config file but will not display the menu.

Obviously you'll have to give the full pathname of the config file or it won't be found.

./lfsa <nosuchfile> will exit saying file doesn't exist, i.e. there is no default filename.

I'll upload lfsa to github. It'll be there today.

jb
 
Old 06-04-2012, 04:01 AM   #22
lich000king
Member
 
Registered: Jun 2011
Posts: 56

Rep: Reputation: Disabled
Great, thanks a lot!
 
Old 01-12-2013, 12:49 PM   #23
rkosten
LQ Newbie
 
Registered: Jan 2013
Posts: 1

Rep: Reputation: Disabled
Sorry for the necro post, I didn't see a better way to get ahold of you

I'm having a problem trying to get this working, and thought I'd see if someone can help. I'm having a couple issues. The first is that the readme says to copy lfs-Makefile.patch to $LFS, but the git repo doesn't have this file for the current release. I went back and grabbed an old version of it but haven't been able to get far enough to tell if that will work or not. The lfsa script is hanging on me, and I'm not sure how to troubleshoot it. It ends with

Code:
Checked out revision 10094.
writing the script to: /mnt/lfs/chapter05.sh
./lfsa: line 648: /mnt/lfs/lfs-commands/chapter05/*-binutils-pass1: No such file
 or directory
At that point I have to kill it, it doesn't seem to be doing anything. I believe I have all the pre-requisites covered, I'm using Gentoo as the host system. Anyone have any ideas on where to poke around?

Last edited by rkosten; 01-12-2013 at 12:54 PM.
 
Old 01-19-2013, 07:36 PM   #24
Johnburrell
Member
 
Registered: May 2004
Distribution: FC3
Posts: 81

Original Poster
Rep: Reputation: 27
Hi rkosten

Sorry you are having problems. It's been a long time since the last post here.

In that time I've made a lot of changes to keep pace with the changes in the LFS book.

At the moment the scripts only build the current development version of LFS. I have not tested it with 7.2 recently so I'm not surprised it breaks.

Try and build the current svn version. I'll update the github site to make sure the scripts are current.

Apparently LFS version 7.3 will be released soon, so I'll test the scripts with that version. I don't think I'll go back and try and make 7.2 work.

Let me know how you get on.

Regards

John
 
  


Reply

Tags
automated, lfs


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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] LFS 6.7 : $LFS/sources and $LFS/tools folders missing prakashsince92 Linux From Scratch 5 12-09-2010 03:26 PM
LFS newbie stuck in Linux API headers step 5.5 LFS book 6.3 Vxplus Linux From Scratch 2 11-10-2008 09:13 PM
LXer: Speaking Unix, Part 6: Automate, automate, automate! LXer Syndicated Linux News 0 01-04-2007 10:54 AM
LFS Book Chapter 6 - 1st step (chroot to /mnt/lfs) doens't work bauld Linux From Scratch 11 03-15-2006 01:31 AM


All times are GMT -5. The time now is 04:02 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration