LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 03-24-2018, 01:47 AM   #1
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Rep: Reputation: Disabled
If i want to use live iso again, after rebooted LFS


Dear Mentors!

If I want to re-use live-iso's GUI for convenience after successfully rebooted shiny new LFS, is it OK to follow instructions already used to chroot into /mnt/lfs?(the process like mount virtual filesystem, mount the filesystem, and chroot with the specific command indicated in the book?link)

Are there any other things I should aware of?

Thanks for another help!
 
Old 03-24-2018, 04:26 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
Some people do the early stages of BLFS in chroot, at least until they have a working browser for reading the Book. You will need to mount everything (including virtual filesystems) exactly as described in Chapter 6 of LFS. And make sure that when you chroot, you are using /usr/bin/env and /bin/bash, not the obsolete versions in /tools.
 
1 members found this post helpful.
Old 03-24-2018, 04:33 AM   #3
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
Some people do the early stages of BLFS in chroot, at least until they have a working browser for reading the Book. You will need to mount everything (including virtual filesystems) exactly as described in Chapter 6 of LFS. And make sure that when you chroot, you are using /usr/bin/env and /bin/bash, not the obsolete versions in /tools.
OK thanks! You helped me alot!
 
Old 03-24-2018, 07:20 AM   #4
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
Quote:
Originally Posted by whjeon View Post
Are there any other things I should aware of?
You can compile most of BLFS in chroot. I compiled most of it from Fedora until I got a browser working in blfs. Keep in mind that /tools does not exist for a completed LFS. That command in the link will not work.

Here is what I used:
Code:
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run
Code:
chroot "$LFS" /usr/bin/env -i              \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin     \
    /bin/bash --login
 
1 members found this post helpful.
Old 03-24-2018, 07:35 AM   #5
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by plasmonics View Post

Here is what I used:
Code:
mount -v --bind /dev $LFS/dev
mount -vt devpts devpts $LFS/dev/pts -o gid=5,mode=620
mount -vt proc proc $LFS/proc
mount -vt sysfs sysfs $LFS/sys
mount -vt tmpfs tmpfs $LFS/run
Code:
chroot "$LFS" /usr/bin/env -i              \
    HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
    PATH=/bin:/usr/bin:/sbin:/usr/sbin     \
    /bin/bash --login
Awesone! Thanks for your precious information!!
 
Old 03-24-2018, 08:13 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
What I do is to put all the mount commands in a script ending with the chroot command itself. I keep the script in root's home directory. Then, when I want to work on the new system, I just type "~/setup_chroot".
 
1 members found this post helpful.
Old 03-24-2018, 10:06 AM   #7
whjeon
Member
 
Registered: Feb 2018
Location: Seoul,South Korea
Distribution: Debian
Posts: 88

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by hazel View Post
What I do is to put all the mount commands in a script ending with the chroot command itself. I keep the script in root's home directory. Then, when I want to work on the new system, I just type "~/setup_chroot".
For me, this thread is too precious. Can't believe how much this information helped me. Thanks again! REALLY! I'll do that too! I didn't think about that.
 
Old 03-24-2018, 10:34 AM   #8
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,573
Blog Entries: 19

Rep: Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452Reputation: 4452
So please mark the posts that you found useful.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Any advantage to installing Debian+MATE via main DVD iso vs Live MATE iso? linustalman Debian 7 07-03-2017 02:11 PM
Make bootable usb from unofficial lfs 7.4 live cd iso image AbhinavKumar Linux From Scratch 1 02-15-2014 07:38 AM
How can i create a pxe server with live cd and live cd iso files baronobeefdip Linux - Server 15 04-20-2012 05:02 PM
Mount ISO as specific device (ie: /dev/sda1) with GRUB2 to boot KNOPPIX live cd iso BLuFeNiX Linux - General 2 12-23-2009 01:31 AM
LFS live-cd: /dev/mapper/lfs-cd ran out of space bucovaina78 Linux From Scratch 0 10-12-2009 11:00 AM

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

All times are GMT -5. The time now is 02:27 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