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.
I've seen the text on stopping and resuming, and other things ... I've looked through the site for quite a while, but I was wondering if there's a real good, easy way to do it so that you can just stop when you want, and get back to where you were quickly.
The livecd documentation discusses a hibernation method whereby the system state is saved to the new swap partition...
Quote:
Resuming the Build
...When your time runs out, execute the “hibernate” command as root. It is not necessary to stop the compilation, but running this command during a testsuite may lead to failures that would not occur otherwise...
...The computer will save its state to your swap partition and power down. This CD will remain in the drive...
Can't link to the documentation page as this is my first post - will post it in follow-up
It's quite old and I haven't looked over the whole thing.
I used the part for "getting back in" at Ch6 once,
but I usually keep my PC running to the end.
I've kept my PC running, I was just wondering if there were real easy ways to do it - I think the hibernation one would be it. I'm real far into it now, I just slept today with it on. I was more worried about something happening like my power going out or any other problems, if maybe that stop and resume hint (the text file) wasn't a little outdated and would force me to try and think through it all step by step to make sure I resume correctly - maybe I'd overlook something. Mostly wondering if I did it again in the future, maybe ... I guess the hibernation is good.
Last time I built an LFS, I was working in a Virtual Box off a Windows XP system, using the LFS Live CD image as the host.
What I did was write up a quick shell script and stored it on the new system's drive. The script set the LFS environment variable, bind-mount the required system mounts, and chroot into the system I was building. All I had to do was boot the host, mount the new system's drive, run the script, and resumed building!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.