Look for a .igz extension on the initramfs instead of .gz

svn path=/trunk/; revision=555
This commit is contained in:
Andrew Gaffney 2008-06-30 20:17:38 +00:00
parent f4147e0951
commit 211c97caec
2 changed files with 5 additions and 2 deletions

View file

@ -2,6 +2,9 @@
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
30 Jun 2008; Andrew Gaffney <agaffney@gentoo.org> scripts/livecd.sh:
Look for a .igz extension on the initramfs instead of .gz
30 Jun 2008; Andrew Gaffney <agaffney@gentoo.org> scripts/livecd.sh:
Quote EOF in fsscript to prevent interpolation at build time

View file

@ -49,9 +49,9 @@ rm -rf /boot/*
cat << 'EOF' >> /etc/conf.d/local.start
if [ -n "$(ls /mnt/cdrom)" ]
then
INITR_TMP=`ls -1 /mnt/cdrom/*/*.gz | head -n 1`
INITR_TMP=`ls -1 /mnt/cdrom/{boot,isolinux}/*.igz | head -n 1`
INITRAMFS=`basename ${INITR_TMP}`
KERNEL=${INITRAMFS/.gz/}
KERNEL=${INITRAMFS/.igz/}
initramfs=`grep initr /usr/livecd/bootfiles.txt | head -n 1`
kernel=`grep kernel /usr/livecd/bootfiles.txt | head -n 1`
cp -f /mnt/cdrom/*/${INITRAMFS} /boot/${initramfs}