diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-01-24 00:31:17 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2001-01-24 00:31:17 +0000 |
commit | 6370fa6cff0ec2a8ac8d50d1595ec9500f6631c9 (patch) | |
tree | b17c8cb0a839b76f4a7db0f771953caa11c3a04e /chapter08 | |
parent | 5c930fe6eb43d23cfa0de2451d9a905a8505f981 (diff) |
Initial commit - LFS 2.4.4 files
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@14 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/chapter8.sgml | 9 | ||||
-rw-r--r-- | chapter08/introduction.sgml | 11 | ||||
-rw-r--r-- | chapter08/kernel.sgml | 34 | ||||
-rw-r--r-- | chapter08/lilo.sgml | 36 | ||||
-rw-r--r-- | chapter08/reboot.sgml | 19 |
5 files changed, 109 insertions, 0 deletions
diff --git a/chapter08/chapter8.sgml b/chapter08/chapter8.sgml new file mode 100644 index 000000000..be5f0ae05 --- /dev/null +++ b/chapter08/chapter8.sgml @@ -0,0 +1,9 @@ +<chapter id="chapter08"> +<title>Making the LFS system bootable</title> + +&c8-introduction; +&c8-kernel; +&c8-lilo; +&c8-reboot; + +</chapter> diff --git a/chapter08/introduction.sgml b/chapter08/introduction.sgml new file mode 100644 index 000000000..e64986577 --- /dev/null +++ b/chapter08/introduction.sgml @@ -0,0 +1,11 @@ +<sect1 id="ch08-introduction"> +<title>Introduction</title> + +<para> +This chapter will make LFS bootable. This chapter deals with building a +new kernel for our new LFS system and adding the proper entries to LILO +so that you can select to boot the LFS system at the LILO: prompt. +</para> + +</sect1> + diff --git a/chapter08/kernel.sgml b/chapter08/kernel.sgml new file mode 100644 index 000000000..77db00cda --- /dev/null +++ b/chapter08/kernel.sgml @@ -0,0 +1,34 @@ +<sect1 id="ch08-kernel"> +<title>Installing a kernel</title> + +<para> +A kernel is the heart of a Linux system. We could use the kernel image +from our normal system, but we might as well compile a new kernel from +the most recent kernel sources available. +</para> + +<para> +Building the kernel involves a few steps: configuring it and compiling +it. There are a few ways to configure the kernel. If you don't like the +way this book does it, read the <filename>README</filename> file and find out +what your other options are. Run the following commands to build the +kernel: +</para> + +<blockquote><literallayout> + + <userinput>cd /usr/src/linux &&</userinput> + <userinput>make mrproper &&</userinput> + <userinput>make menuconfig &&</userinput> + <userinput>make dep &&</userinput> + <userinput>make bzImage &&</userinput> + <userinput>make modules &&</userinput> + <userinput>make modules_install &&</userinput> + <userinput>cp arch/i386/boot/bzImage /boot/lfskernel && + </userinput> + <userinput>cp System.map /boot</userinput> + +</literallayout></blockquote> + +</sect1> + diff --git a/chapter08/lilo.sgml b/chapter08/lilo.sgml new file mode 100644 index 000000000..381f2dc56 --- /dev/null +++ b/chapter08/lilo.sgml @@ -0,0 +1,36 @@ +<sect1 id="ch08-lilo"> +<title>Adding an entry to LILO</title> + +<para> +In order to being able to boot from this partition, we need to update our +/etc/lilo.conf file. Add the following lines to lilo.conf by running: +</para> + +<literallayout> + +<userinput>cat >> /etc/lilo.conf << "EOF"</userinput> +image=/boot/lfskernel + label=lfs + root=<partition> + read-only +<userinput>EOF</userinput> + +</literallayout> + +<para> +<partition> must be replaced by your partition's designation (which +would be /dev/hda5 in my case). +</para> + +<para> +Now update the boot loader by running: +</para> + +<blockquote><literallayout> + + <userinput>/sbin/lilo</userinput> + +</literallayout></blockquote> + +</sect1> + diff --git a/chapter08/reboot.sgml b/chapter08/reboot.sgml new file mode 100644 index 000000000..4ced41b8f --- /dev/null +++ b/chapter08/reboot.sgml @@ -0,0 +1,19 @@ +<sect1 id="ch08-reboot"> +<title>Rebooting the system</title> + +<para> +Now that all software has been installed, bootscripts have been created, +it's time for you to reboot your computer. Shutdown your system with +shutdown -r now and reboot into LFS. After the reboot you will have a normal +login prompt like you have on your normal Linux system (unless you use XDM or +some sort of other Display Manger (like KDM - KDE's version of XDM). +</para> + +<para> +One thing remains to be done and that's setting up networking. After you +rebooted and finished the next chapter of this book your LFS system is +ready for use and you can do with it whatever you want. +</para> + +</sect1> + |