Bug#614023: grub-common: /etc/grub.d/30_os-prober sets invalid boot device for the Hurd

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Mon Mar 28 03:27:26 UTC 2011


tag 614023 fixed-upstream
thanks
> The affected line is:
>
>     "multiboot /boot/gnumach.gz root=device:hd0smsdos2"
>
>   
Fixed upstream by r2627. Note however that the device name is just an
educated guess. GNU/Mach should support UUIDs.
=== modified file 'ChangeLog'
--- ChangeLog   2010-08-23 17:56:24 +0000
+++ ChangeLog   2010-08-23 20:41:14 +0000
@@ -1,3 +1,8 @@
+2010-08-23  Samuel Thibault  <samuel.thibault at ens-lyon.org>
+
+       * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
+       --target=drive output to Mach device name.
+
 2010-08-23  BVK Chaitanya  <bvk.groups at gmail.com>
 
        New Automake based build system for GRUB.

=== modified file 'util/grub.d/30_os-prober.in'
--- util/grub.d/30_os-prober.in 2010-07-04 22:45:14 +0000
+++ util/grub.d/30_os-prober.in 2010-08-23 20:41:14 +0000
@@ -179,7 +179,7 @@
       save_default_entry | sed -e "s/^/\t/"
       prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/"
       grub_device="`${grub_probe} --device ${DEVICE} --target=drive`"
-      mach_device="`echo "${grub_device}" | tr -d '()' | tr , s`"
+      mach_device="`echo "${grub_device}" | sed -e
's/(\(hd.*\),msdos\(.*\))/\1s\2/'`"
       grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
       case "${grub_fs}" in
        *fs)    hurd_fs="${grub_fs}" ;;


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110328/892f4fcb/attachment.pgp>


More information about the Pkg-grub-devel mailing list