Be more specific in grep for kernel filename

svn path=/trunk/; revision=559
This commit is contained in:
Andrew Gaffney 2008-07-06 22:14:25 +00:00
parent ab96461dc2
commit 5aeec8da35
2 changed files with 4 additions and 1 deletions

View file

@ -2,6 +2,9 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
06 Jul 2008; Andrew Gaffney <agaffney@gentoo.org> scripts/livecd.sh:
Be more specific in grep for kernel filename
06 Jul 2008; Andrew Gaffney <agaffney@gentoo.org> scripts/livecd.sh:
Another attempt to fix this stupid /boot bait-and-switch

View file

@ -55,7 +55,7 @@ then
INITRAMFS=`ls -1 /mnt/cdrom/{boot,isolinux}/*.igz 2>/dev/null | head -n 1`
KERNEL=${INITRAMFS/.igz/}
initramfs=`grep initr /usr/livecd/bootfiles.txt | head -n 1`
kernel=`grep kernel /usr/livecd/bootfiles.txt | head -n 1`
kernel=`grep '^kernel-' /usr/livecd/bootfiles.txt | head -n 1`
cp -f ${INITRAMFS} /boot/${initramfs}
cp -f ${KERNEL} /boot/${kernel}
cp -f /usr/livecd/System.map* /boot