]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-06-21 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Sat, 21 Jun 2008 13:51:19 +0000 (13:51 +0000)
committerrobertmh <robertmh@localhost>
Sat, 21 Jun 2008 13:51:19 +0000 (13:51 +0000)
        * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
        call from here ...

        * util/grub.d/10_hurd.in: ... to here ...
        * util/grub.d/10_linux.in: ... and here.

ChangeLog
util/grub.d/00_header.in
util/grub.d/10_hurd.in
util/grub.d/10_linux.in

index de71948be9365af451555253cff9a476d1da0029..49b3c58d837d2a8ad23f670f4177a3de3efe3a7e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-06-21  Robert Millan  <rmh@aybabtu.com>
+
+       * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
+       call from here ...
+
+       * util/grub.d/10_hurd.in: ... to here ...
+       * util/grub.d/10_linux.in: ... and here.
+
 2008-06-19  Robert Millan  <rmh@aybabtu.com>
 
        * kern/main.c (grub_main): Export `prefix' variable inmediately
index cabe569c3c6e055141befd8e69bad005b428dcfb..bf9507c884d4031f1ace96d118ceece3a150c3c8 100644 (file)
@@ -62,6 +62,3 @@ EOF
     echo "terminal ${GRUB_TERMINAL}"
   ;;
 esac
-
-# Set the root device.
-prepare_grub_to_access_device ${GRUB_DEVICE_BOOT}
index 99d57e53bb7e1d81c90972ca8427019427a4b8c5..d437873d20ef582c7985551edbad92072776094f 100644 (file)
@@ -63,6 +63,8 @@ if ${all_of_them} && test -e /lib/ld.so.1 ; then : ; else
   exit 1
 fi
 
+prepare_grub_to_access_device ${GRUB_DEVICE}
+
 cat << EOF
 menuentry "${OS}" {
        multiboot ${kernel} root=device:${GRUB_DEVICE}
index 1ae1e1e51777303277c8a955b9b4f97043c470c9..6ee705ba087d3b183f1f707a1bdfb5295b23d4ad 100644 (file)
@@ -97,6 +97,10 @@ list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
         if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
       done`
 
+if [ "x$list" != "x" ] ; then
+  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT}
+fi
+
 while [ "x$list" != "x" ] ; do
   linux=`find_latest $list`
   echo "Found linux image: $linux" >&2