From 5a66888482acadba79cf0781e0c066b55989f760 Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Sun, 10 Mar 2002 00:23:00 +0000 Subject: 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 --- chapter08/lilo.xml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'chapter08') 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 read-only should be changed to The last step is synchronizing the host system's lilo configuration files with the LFS system's: -cp /etc/lilo.conf $LFS/etc && -cp <kernel images> $LFS/boot - -To find out which kernel images files are being used, look at the -/etc/lilo.conf file and look for the lines starting with -image=. 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. +cp /etc/lilo.conf $LFS/etc && +cp $(grep "image=" /etc/lilo.conf | cut -f 2 -d "=") $LFS/boot -- cgit v1.2.3-54-g00ecf