LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   installing LFS-8.0, is it safe to shutdown after completion of chapter 6? (https://www.linuxquestions.org/questions/linux-from-scratch-13/installing-lfs-8-0-is-it-safe-to-shutdown-after-completion-of-chapter-6-a-4175607092/)

apmount 06-01-2017 02:16 AM

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.

plasmonics 06-01-2017 06:55 AM

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.

hazel 06-01-2017 08:23 AM

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.

Keith Hedger 06-01-2017 02:34 PM

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.


All times are GMT -5. The time now is 01:02 PM.