From d72e04ae7c868b734e3ad39982b169c71444f541 Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sun, 30 Jan 2005 12:51:22 +0000 Subject: Added tags. Added NEW comments to commands that differs from testing. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4599 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter08/fstab.xml | 20 ++++++++++---------- chapter08/grub.xml | 12 ++++++------ chapter08/kernel.xml | 4 +++- 3 files changed, 19 insertions(+), 17 deletions(-) (limited to 'chapter08') diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml index 443f21e9c..7faeaabb2 100644 --- a/chapter08/fstab.xml +++ b/chapter08/fstab.xml @@ -7,19 +7,19 @@ Creating the /etc/fstab File - cat > /etc/fstab << "EOF" -# Begin /etc/fstab +# Begin /etc/fstab -# file system mount-point fs-type options dump fsck-order +# file system mount-point type options dump fsck +# order -/dev/[xxx] / [fff] defaults 1 1 -/dev/[yyy] swap swap pri=1 0 0 -proc /proc proc defaults 0 0 -sysfs /sys sysfs defaults 0 0 -devpts /dev/pts devpts gid=4,mode=620 0 0 -shm /dev/shm tmpfs defaults 0 0 -# End /etc/fstab +/dev/[xxx] / [fff] defaults 1 1 +/dev/[yyy] swap swap pri=1 0 0 +proc /proc proc defaults 0 0 +sysfs /sys sysfs defaults 0 0 +devpts /dev/pts devpts gid=4,mode=620 0 0 +shm /dev/shm tmpfs defaults 0 0 +# End /etc/fstab EOF diff --git a/chapter08/grub.xml b/chapter08/grub.xml index 3ccad5339..970194b57 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -38,7 +38,7 @@ files -- you can use the Tab key everywhere to make Grub show the alternatives:< boot menu: cat > /boot/grub/menu.lst << "EOF" -# Begin /boot/grub/menu.lst +# Begin /boot/grub/menu.lst # By default boot the first menu entry. default 0 @@ -52,26 +52,26 @@ color green/black light-green/black # The first entry is for LFS. title LFS &version; root (hd0,3) -kernel /boot/lfskernel-&linux-version; root=/dev/hda4 +kernel /boot/lfskernel-&linux-version; root=/dev/hda4 EOF You may want to add an entry for your host distribution. It might look like this: cat >> /boot/grub/menu.lst << "EOF" -title Red Hat +title Red Hat root (hd0,2) kernel /boot/kernel-2.4.20 root=/dev/hda3 -initrd /boot/initrd-2.4.20 +initrd /boot/initrd-2.4.20 EOF Also, if you happen to dual-boot Windows, the following entry should allow booting it: cat >> /boot/grub/menu.lst << "EOF" -title Windows +title Windows rootnoverify (hd0,0) -chainloader +1 +chainloader +1 EOF The FHS stipulates that Grub's menu.lst file should be symlinked to diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index 01bac036b..5a4c60c90 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -33,11 +33,13 @@ processes to gain root privledges upon loading of a kernel module. See: make mrproper + + If, in , you decided you want to compile the keymap into the kernel, issue the command below: loadkeys -m /usr/share/kbd/keymaps/[path to keymap] > \ - [unpacked sources dir]/linux-&linux-version;/drivers/char/defkeymap.c + drivers/char/defkeymap.c Configure the kernel via a menu-driven interface: -- cgit v1.2.3-54-g00ecf