source: BOOK/the-end/reboot.xml@ f8db29a

clfs-3.0.0-systemd systemd
Last change on this file since f8db29a was c6b94da, checked in by William Harrington <kb0iic@…>, 11 years ago

Fix umount command for /dev/shm. It should be almost like kernfs mount of /dev/shm as in the chroot section.

  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-finish-reboot">
9 <?dbhtml filename="reboot.html"?>
10
11 <title>Rebooting the System</title>
12
[393afdb]13 <para>If you built your final system using the boot method, just run
14 <command>shutdown -r now</command> to reboot again, using your newly-built
15 kernel instead of the miminal one currently in use. If you chrooted,
16 there are a few more steps.</para>
[30caf1b]17
[393afdb]18 <para>The system you have created in this book is quite minimal, and most
[3f8be484]19 likely will not have the functionality you would need to be able to
[e3a8717]20 continue forward. By installing a few extra packages from CBLFS
21 while still in our current chroot environment, you can leave
[3f8be484]22 yourself in a much better position to continue on once you reboot
[fb40919]23 into your new CLFS installation. Installing a text mode web browser,
[e3a8717]24 such as Lynx, you can easily view the CBLFS website in one virtual terminal,
[3f8be484]25 while building packages in another. The GPM package will also allow you
26 to perform copy/paste actions in your virtual terminals. Lastly, if you
27 are in a situation where static IP configuration does not meet your
28 networking requirements, installing packages such as Dhcpcd or PPP at
29 this point might also be useful.</para>
30
31 <para>Now that we have said that, lets move on to booting our shiny
[fb40919]32 new CLFS installation for the first time! First exit from the chroot
[3f8be484]33 environment:</para>
34
35<screen><userinput>logout</userinput></screen>
36
[3bec8f3]37 <para>Then unmount the virtual file systems:</para>
[3f8be484]38
[040521bc]39<screen><userinput>umount ${CLFS}/dev/pts
[c6b94da]40
41if [ -h ${CLFS}/dev/shm ]; then
42 link=$(readlink ${CLFS}/dev/shm)
43 umount -v ${CLFS}/$link
44 unset link
45else
46 umount -v ${CLFS}/dev/shm
47fi
48
[040521bc]49umount ${CLFS}/dev
50umount ${CLFS}/proc
51umount ${CLFS}/sys</userinput></screen>
[3f8be484]52
[fb40919]53 <para>Unmount the CLFS file system itself:</para>
[3f8be484]54
[040521bc]55<screen><userinput>umount ${CLFS}</userinput></screen>
[3f8be484]56
57 <para>If multiple partitions were created, unmount the other
58 partitions before unmounting the main one, like this:</para>
59
[040521bc]60<screen><userinput>umount ${CLFS}/usr
61umount ${CLFS}/home
62umount ${CLFS}</userinput></screen>
[3f8be484]63
64 <para>Now, reboot the system with:</para>
65
66<screen><userinput>shutdown -r now</userinput></screen>
67
68 <para>Assuming the boot loader was set up as outlined earlier,
[e97d7d3]69 <emphasis>CLFS &version;</emphasis> will boot automatically.</para>
[3f8be484]70
[fb40919]71 <para>When the reboot is complete, the CLFS system is ready for use and
[3f8be484]72 more software may be added to suit your needs.</para>
73
74</sect1>
Note: See TracBrowser for help on using the repository browser.