diff options
author | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-03-10 00:23:00 +0000 |
---|---|---|
committer | Gerard Beekmans <gerard@linuxfromscratch.org> | 2002-03-10 00:23:00 +0000 |
commit | 5a66888482acadba79cf0781e0c066b55989f760 (patch) | |
tree | 97627ae7900771263ab84a6f6e30bb6d5355eb3b | |
parent | 8e791bea5aaf43888d67f184c22a1c7d1f834c8b (diff) |
added cp command to auto-detect kernel images and cp to /mnt/lfs/boot
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1693 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter01/changelog.xml | 5 | ||||
-rw-r--r-- | chapter08/lilo.xml | 11 |
2 files changed, 7 insertions, 9 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 50433b511..3d72fda92 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -30,6 +30,11 @@ </para></listitem> +<listitem><para>March 9th, 2002 [gerard]: Chapter 08 - Make bootable: Added +a <userinput>cp</userinput> command that finds all the kernel images from +<filename>/etc/lilo.conf</filename> automatically and copies them to +<filename class="directory">$LFS/boot</filename>.</para></listitem> + <listitem><para>March 9th, 2002 [gerard]: Chapter 06 - Man: Moved the <filename>man.conf</filename> from <filename class="directory">/usr/share/misc</filename> to <filename diff --git a/chapter08/lilo.xml b/chapter08/lilo.xml index a9ba93fc0..65499da51 100644 --- a/chapter08/lilo.xml +++ b/chapter08/lilo.xml @@ -41,15 +41,8 @@ the line <userinput>read-only</userinput> should be changed to <para>The last step is synchronizing the host system's lilo configuration files with the LFS system's:</para> -<para><screen><userinput>cp /etc/lilo.conf $LFS/etc &&</userinput> -<userinput>cp <kernel images> $LFS/boot</userinput></screen></para> - -<para>To find out which kernel images files are being used, look at the -/etc/lilo.conf file and look for the lines starting with -<emphasis>image=</emphasis>. If your host system has kernel files in -other places than the /boot directory, make sure you update the paths -in the $LFS/etc/lilo.conf file so that it does look for them in the -/boot directory.</para> +<para><screen><userinput>cp /etc/lilo.conf $LFS/etc && +cp $(grep "image=" /etc/lilo.conf | cut -f 2 -d "=") $LFS/boot</userinput></screen></para> </sect1> |