]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2008-08-01 Robert Millan <rmh@aybabtu.com>
authorrobertmh <robertmh@localhost>
Fri, 1 Aug 2008 12:56:56 +0000 (12:56 +0000)
committerrobertmh <robertmh@localhost>
Fri, 1 Aug 2008 12:56:56 +0000 (12:56 +0000)
        * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
        within menuentries, not before them.
        util/grub.d/10_hurd.in: Likewise.

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

index fb14bd3bfb46f14904f558bf53b84f98be0e49ed..17c0347c1988f37eec2d8c4c926d1be5f983cac5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-01  Robert Millan  <rmh@aybabtu.com>
+
+       * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
+       within menuentries, not before them.
+       util/grub.d/10_hurd.in: Likewise.
+
 2008-08-01  Bean  <bean123ch@gmail.com>
 
        * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
index ed54f2f0a273dc210490994ad3ffb10fe02449bc..833b24fc6065c2db3d9f7ed0511b29097ef35eb7 100644 (file)
@@ -68,10 +68,11 @@ 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}" {
+EOF
+prepare_grub_to_access_device ${GRUB_DEVICE} | sed -e "s/^/\t/"
+cat << EOF
        multiboot ${kernel} root=device:${GRUB_DEVICE}
        module /hurd/${hurd_fs}.static --readonly \\
                        --multiboot-command-line='\${kernel-command-line}' \\
index 2512bd26e247b21894c2e067f89604cd9e4a6c43..9045904cbfc5ce426223606706a7b91ecc4ee285 100644 (file)
@@ -97,10 +97,6 @@ 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
@@ -128,6 +124,9 @@ while [ "x$list" != "x" ] ; do
 
   cat << EOF
 menuentry "${OS}, linux ${version}" {
+EOF
+  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
+  cat << EOF
        linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro ${GRUB_CMDLINE_LINUX} ${GRUB_CMDLINE_LINUX_DEFAULT}
 EOF
   if test -n "${initrd}" ; then
@@ -141,6 +140,9 @@ EOF
 
   cat << EOF
 menuentry "${OS}, linux ${version} (single-user mode)" {
+EOF
+  prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
+  cat << EOF
        linux   ${rel_dirname}/${basename} root=${linux_root_device_thisversion} ro single ${GRUB_CMDLINE_LINUX}
 EOF
   if test -n "${initrd}" ; then