Be more specific in grep for kernel filename
svn path=/trunk/; revision=559
This commit is contained in:
parent
ab96461dc2
commit
5aeec8da35
2 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
||||||
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
|
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
|
||||||
# $Header: $
|
# $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:
|
06 Jul 2008; Andrew Gaffney <agaffney@gentoo.org> scripts/livecd.sh:
|
||||||
Another attempt to fix this stupid /boot bait-and-switch
|
Another attempt to fix this stupid /boot bait-and-switch
|
||||||
|
|
||||||
|
|
|
@ -55,7 +55,7 @@ then
|
||||||
INITRAMFS=`ls -1 /mnt/cdrom/{boot,isolinux}/*.igz 2>/dev/null | head -n 1`
|
INITRAMFS=`ls -1 /mnt/cdrom/{boot,isolinux}/*.igz 2>/dev/null | head -n 1`
|
||||||
KERNEL=${INITRAMFS/.igz/}
|
KERNEL=${INITRAMFS/.igz/}
|
||||||
initramfs=`grep initr /usr/livecd/bootfiles.txt | head -n 1`
|
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 ${INITRAMFS} /boot/${initramfs}
|
||||||
cp -f ${KERNEL} /boot/${kernel}
|
cp -f ${KERNEL} /boot/${kernel}
|
||||||
cp -f /usr/livecd/System.map* /boot
|
cp -f /usr/livecd/System.map* /boot
|
||||||
|
|
Loading…
Add table
Reference in a new issue