1 | <sect1 id="ch-finish-reboot">
|
---|
2 | <title>Rebooting the system</title>
|
---|
3 | <?dbhtml filename="reboot.html" dir="chapter09"?>
|
---|
4 |
|
---|
5 | <para>Now that all of the software has been installed, it's time to exit the
|
---|
6 | chroot environment and reboot the computer. Before we exit the chroot
|
---|
7 | environment, let's unmount any mounted virtual file systems by running:</para>
|
---|
8 |
|
---|
9 | <screen><userinput>umount /proc
|
---|
10 | umount /dev/pts</userinput></screen>
|
---|
11 |
|
---|
12 | <para>Exit the chroot environment:</para>
|
---|
13 | <screen><userinput>logout</userinput></screen>
|
---|
14 |
|
---|
15 | <para>Additionally, now that all software has been installed, there is no longer
|
---|
16 | a need for the <filename class="directory">/tools</filename> directory. You may
|
---|
17 | delete it. As this will also remove the temporary copies of Tcl, Expect and
|
---|
18 | DejaGnu, which were used for running the toolchain tests, you will need to
|
---|
19 | recompile and re-install them on your LFS system if you want to use these
|
---|
20 | programs later.</para>
|
---|
21 |
|
---|
22 | <para>Also you may now want to move the contents of
|
---|
23 | <filename class="directory">/sources</filename> to
|
---|
24 | <filename class="directory">/usr/src/packages</filename> or something similar
|
---|
25 | (or simply delete them if you've burned them on a CD) and delete the
|
---|
26 | directory.</para>
|
---|
27 |
|
---|
28 | <para>Before we reboot, let's unmount the LFS partition itself:</para>
|
---|
29 |
|
---|
30 | <screen><userinput>umount $LFS</userinput></screen>
|
---|
31 |
|
---|
32 | <para>If you earlier decided to create multiple partitions, you'll need to
|
---|
33 | unmount the other partitions before you unmount $LFS, like this:</para>
|
---|
34 |
|
---|
35 | <screen><userinput>umount $LFS/usr
|
---|
36 | umount $LFS/home
|
---|
37 | umount $LFS</userinput></screen>
|
---|
38 |
|
---|
39 | <para>And now you can reboot your system by running something like:</para>
|
---|
40 |
|
---|
41 | <screen><userinput>/sbin/shutdown -r now</userinput></screen>
|
---|
42 |
|
---|
43 | <para>Assuming the Grub boot loader was set up as outlined earlier, the
|
---|
44 | default menu should be set to boot <emphasis>LFS &milestone;</emphasis>
|
---|
45 | automatically.</para>
|
---|
46 |
|
---|
47 | <para>After you have rebooted, your LFS system is ready for use and you
|
---|
48 | can start adding your own software.</para>
|
---|
49 |
|
---|
50 | </sect1>
|
---|