[Bug 392836] Re: grub not adding correct uuid to grub.cfg

Tuomas Heino iheino+ub at cc.hut.fi
Sun Nov 1 11:28:41 UTC 2009


As a temporary workaround (that only works with setups similar to mine,
since the test for separate /boot is simply wrong) I changed 30_os-
prober as follows:

--- 30_os-prober.orig   2009-11-01 13:26:40.787934691 +0200
+++ 30_os-prober        2009-11-01 13:27:21.897932968 +0200
@@ -128,6 +128,11 @@
         LINITRD="`echo ${LINUX} | cut -d ':' -f 5`"
         LPARAMS="`echo ${LINUX} | cut -d ':' -f 6- | tr '^' ' '`"
 
+        if [ "${LBOOT%%dev/md*}" = "/" ] ; then
+          LKERNEL="${LKERNEL#/boot}"
+          LINITRD="${LKERNEL#/boot}"
+        fi
+
         if [ -z "${LLABEL}" ] ; then
           LLABEL="${LONGNAME}"
         fi
@@ -136,7 +141,7 @@
 menuentry "${LLABEL} (on ${DEVICE})" {
 EOF
        save_default_entry | sed -e "s/^/\t/"
-       prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
+       prepare_grub_to_access_device ${LBOOT} | sed -e "s/^/\t/"
        cat <<  EOF
        linux ${LKERNEL} ${LPARAMS}
 EOF

-- 
grub not adding correct uuid to grub.cfg
https://bugs.launchpad.net/bugs/392836
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs




More information about the universe-bugs mailing list