[SOLVED] If i want to use live iso again, after rebooted LFS
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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.
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.
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
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".
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.