From ab96461dc24238d2e36d009be047ad2e0b0b2594 Mon Sep 17 00:00:00 2001 From: Andrew Gaffney Date: Sun, 6 Jul 2008 20:43:49 +0000 Subject: [PATCH] Another attempt to fix this stupid /boot bait-and-switch svn path=/trunk/; revision=558 --- releases/2008.0/ChangeLog | 3 +++ releases/2008.0/scripts/livecd.sh | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/releases/2008.0/ChangeLog b/releases/2008.0/ChangeLog index 928dcc3f..c8575c0d 100644 --- a/releases/2008.0/ChangeLog +++ b/releases/2008.0/ChangeLog @@ -2,6 +2,9 @@ # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 # $Header: $ + 06 Jul 2008; Andrew Gaffney scripts/livecd.sh: + Another attempt to fix this stupid /boot bait-and-switch + 13 Jun 2008; Brent Baude kconfig/powerpc/installcd-ppc32apple-2.6.24.config, kconfig/powerpc/installcd-ppc64apple-2.6.24.config kconfig/powerpc/installcd-ibm-2.6.24.config diff --git a/releases/2008.0/scripts/livecd.sh b/releases/2008.0/scripts/livecd.sh index 8b7fdce6..592c9fec 100644 --- a/releases/2008.0/scripts/livecd.sh +++ b/releases/2008.0/scripts/livecd.sh @@ -40,7 +40,7 @@ echo "#####################################################" >> /etc/fstab echo "tmpfs / tmpfs defaults 0 0" >> /etc/fstab echo "tmpfs /lib/firmware tmpfs defaults 0 0" >> /etc/fstab echo "tmpfs /usr/portage tmpfs defaults 0 0" >> /etc/fstab -echo "tmpfs /boot tmpfs defaults 0 0" >> /etc/fstab +#echo "tmpfs /boot tmpfs defaults 0 0" >> /etc/fstab # pull /boot from the CD cd /boot && ls -1 | grep -v boot > /usr/livecd/bootfiles.txt @@ -49,13 +49,15 @@ rm -rf /boot/* cat << 'EOF' >> /etc/conf.d/local.start if [ -n "$(ls /mnt/cdrom)" ] then - INITR_TMP=`ls -1 /mnt/cdrom/{boot,isolinux}/*.igz | head -n 1` - INITRAMFS=`basename ${INITR_TMP}` + rm /boot + mkdir /boot + mount -t tmpfs tmpfs /boot + 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` - cp -f /mnt/cdrom/*/${INITRAMFS} /boot/${initramfs} - cp -f /mnt/cdrom/*/${KERNEL} /boot/${kernel} + cp -f ${INITRAMFS} /boot/${initramfs} + cp -f ${KERNEL} /boot/${kernel} cp -f /usr/livecd/System.map* /boot fi EOF