Disabled deleting of /boot so we actually can work with EFI/grub, made EFI check...
authorChris Gianelloni <wolf31o2@gentoo.org>
Tue, 13 Feb 2007 00:13:07 +0000 (00:13 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Tue, 13 Feb 2007 00:13:07 +0000 (00:13 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1216 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/support/bootloader-setup.sh
targets/support/create-iso.sh

index ca86afc707dae70c71e987c937d0bf22942087f7..6366fae74096e56d0c9aae1c4c788911247aa7c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 # 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
index 5377c8c1ebc538d389295ac711b59976bdf96c60..f6c6239603ff6effe19ce063695bdca47e660d93 100755 (executable)
@@ -340,8 +340,7 @@ case ${clst_hostarch} in
        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
@@ -429,6 +428,7 @@ case ${clst_hostarch} in
 
                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}
index 1999668f287383b4d88cc8e7eba7389874a4b168..026f5b80a82f1f9bd6e6c1a73c304b84f22e0b39 100755 (executable)
@@ -360,15 +360,15 @@ case ${clst_hostarch} in
 
                                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 ]