LinuxQuestions.org
Visit Jeremy's Blog.
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 04-22-2018, 11:41 PM   #1
anon297
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Rep: Reputation: Disabled
My own bash script related question.


Dear Mentors!
I'm having pleasant experience with BLFS!
I will try new install from LFS to BLFS, and have a question!

If I want to implement my own function which does simple job as append installed package name into a single file and notes on them, and then later grep installed packages and notes if they are installed, and if not, echo "not installed yet".

I will make two function for above feature. such as 'addpck('add package'for add installed packages name into file)', and 'chkpck('check package' for check if package has been successfully installed before or not)'.

I'm wondering when I have to implement that bash script.
There's chroot several times on LFS process, so can I implement those features from start? or wait and start when Ch.6 has begun?
(chroot and installation of bash again in Ch.6 concerns me)

I think When BLFS has started, it has no problem to use that script. Just curious on LFS process. When is the right time for implementing those scripts?
 
Old 04-23-2018, 02:52 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,716

Rep: Reputation: 7553Reputation: 7553Reputation: 7553Reputation: 7553Reputation: 7553Reputation: 7553Reputation: 7553Reputation: 7553Reputation: 7553Reputation: 7553Reputation: 7553
is this the same https://www.linuxquestions.org/quest...on-4175628228/ ?
 
Old 04-23-2018, 03:29 AM   #3
anon297
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
Nope! I've already mentioned there, but this is more related to 'when' issue.
When is the best time to do that?

I'm asking this because there's a lot of PATH changes, and even bash installation process.
Hope it doesn't matter, but if there's a good point to start using my own script, please tell me!
 
Old 04-23-2018, 06:44 AM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,190

Rep: Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866Reputation: 866
If you are planning on a roll your own package manager you probably want to start at the start of chapter six, that's what I do, see here:
https://github.com/KeithDHedger/LFSPkgBuilds
 
1 members found this post helpful.
Old 04-23-2018, 09:49 AM   #5
anon297
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keith Hedger View Post
If you are planning on a roll your own package manager you probably want to start at the start of chapter six, that's what I do, see here:
https://github.com/KeithDHedger/LFSPkgBuilds
That was awesome! Thanks!
 
Old 04-24-2018, 12:44 AM   #6
Nobutarou
Member
 
Registered: May 2017
Posts: 43

Rep: Reputation: Disabled
If you want to update LFS packages, you can start from Ch.6.
If you never touch the basic LFS system, you can start from BLFS.

I usually use DESTDIR and graft. In my case, I started it from BLFS.
 
1 members found this post helpful.
  


Reply


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
Strange Bash Script Date related issue skoda Linux - Newbie 4 08-12-2014 07:30 AM
sed question about bash related patolfo Programming 17 05-03-2010 09:57 AM
bash scripting question, homework related cybergeek11235 Linux - General 4 10-12-2008 10:59 PM
bash related question Menestrel Linux - Newbie 2 01-25-2005 10:03 AM
bash related question MattSmith Linux - General 1 01-20-2004 05:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 01:14 AM.

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