# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 13 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org>
+ targets/support/bootloader-setup.sh, targets/support/create-iso.sh:
+ Disabled deleting of /boot so we actually can work with EFI/grub, made EFI
+ check look in the correct location, and made sure we don't delete /voot
+ within the EFI code if grub is present.
+
12 Feb 2007; Chris Gianelloni <wolf31o2@gentoo.org>
modules/generic_stage_target.py:
Added another fix from Andrew Gaffney <agaffney@gentoo.org> from bug
x86|amd64)
if [ -e $1/isolinux/isolinux.bin ]
then
- mv $1/boot/* $1/isolinux
- rmdir $1/boot
+ cp -f $1/boot/* $1/isolinux
# the rest of this function sets up the config file for isolinux
icfg=$1/isolinux/isolinux.cfg
kmsg=$1/isolinux/kernels.msg
if [ -e $1/boot/efi/elilo.efi ]
then
+ [ -e $1/isolinux/elilo.efi ] && rm -f $1/isolinux/elilo.efi
iacfg=$1/boot/elilo.conf
echo 'prompt' > ${iacfg}
echo 'message=/efi/boot/elilo.msg' >> ${iacfg}
umount ${clst_target_path}/gentoo.efimg.mountPoint
rmdir ${clst_target_path}/gentoo.efimg.mountPoint
+ if [ ! -e ${clst_target_path}/boot/grub/stage2_eltorito ]
+ then
+ echo "Removing /boot"
+ rm -rf ${clst_target_path}/boot
+ fi
else
echo "Found populated EFI image at \
${clst_target_path}/gentoo.efimg"
fi
- if [ ! -e ${clst_target_path}/boot/grub/stage2_eltorito ]
- then
- echo "Removing /boot"
- rm -rf ${clst_target_path}/boot
- fi
fi
if [ -e ${clst_target_path}/isolinux/isolinux.bin ]