LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-01-2017, 02:16 AM   #1
apmount
Member
 
Registered: Mar 2009
Location: Athens
Distribution: Slackware
Posts: 98

Rep: Reputation: 16
installing LFS-8.0, is it safe to shutdown after completion of chapter 6?


Hello, I managed somehow to reach the end of chapter 6 and I am ready to proceed with chapter 7. However, at this point I would like to stop the process for a while and come back again after some time. Is it OK if i shutdown the working environment at this stage? As per chapter 2 paragraph 3.3 i only need to redo some mountings when I will come back. Are there any other issues i will have to consider?

The environment I am building LFS is slackware64 14.2 that runs under Virtualbox from an external usb hdd (it can also run nativily by directly booting from this hdd outside of virtualbox).

Regards, Apostolos.
 
Old 06-01-2017, 06:55 AM   #2
plasmonics
Member
 
Registered: Jan 2009
Distribution: Fedora, Gentoo, LFS
Posts: 224

Rep: Reputation: 69
I am not an expert on LFS, but I believe it is ok to shutdown and resume. In fact, this is exactly what I did when I built LFS. I spent several hours a day for about 7 days and shutdown each day. Each time you resume, you have to execute the chroot sequence in the book.
 
Old 06-01-2017, 08:23 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,616
Blog Entries: 19

Rep: Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460Reputation: 4460
I shut down and resume multiple times. My LFS builds usually take weeks!

In root's home directory on the host, make a script that will mount the LFS partition, mount all the dynamic partitions on it, and do the actual chroot. If you have reached the end of chapter 6, you will want to use /bin/bash and /usr/bin/env in the chroot command. Otherwise the instructions are the same as the ones at the beginning of chapter 6. Make it executable.

At the start of each new session, just type ./setup or whatever you have called the script.
 
Old 06-01-2017, 02:34 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,153

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
As has been said it's fine to shutdown just make sure you redo all you need to before resuming, it's best to put the commands into a script and just execute that, that way you can't accidentaly forget anything, I also use a script when exiting the chroot to make sure stuff gets unmounted from the chroot properly.
 
  


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
gnu-gcc: command not found error after installing glibc in chapter 5.7 of LFS 7.2 Black Death Linux From Scratch 13 10-22-2014 10:47 AM
LFS chapter-by-chapter complete commands with notes DrinkinHomeBrew Linux From Scratch 6 03-16-2012 01:57 AM
[SOLVED] LFS 6.8 - check error 2 when installing glibc for chapter 6.9 robofighter Linux From Scratch 4 07-30-2011 03:25 PM
LFS 6.3, messed up somewhere prior to chapter 6.12 (gcc), how to restart chapter 6? Funkster Linux From Scratch 2 12-24-2008 06:30 AM
LFS 5.0 - chapter 5 - installing the kernel: error message hecresper Linux From Scratch 2 02-04-2004 11:36 PM

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

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