bugGNU GRUB - Bugs: bug #48068, Improve/fix Hurd detected device...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #48068: Improve/fix Hurd detected device name in 30_os-prober script

Submitted by:  Rodrigo V. G. <rodri>
Submitted on:  Tue 31 May 2016 06:26:55 PM UTC  
 
Category:  Configuration Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  Git master Reproducibility:  Every Time
Planned Release:  2.03+

Tue 31 May 2016 06:26:55 PM UTC, original submission:

Here is a possible patch for:
util/grub.d/30_os-prober.in
to provide the correct device name for booting the Hurd (it expects device names like:
hd0s2
instead of:
(hostdisk//dev/sda,msdos2)
provided currently).
The patch was originally submitted as a Debian bug at:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=825292

--------------------------------------------------------
diff -Naur grub-git/util/grub.d/30_os-prober.in grub-git-2/util/grub.d/30_os-prober.in
--- grub-git/util/grub.d/30_os-prober.in 2016-05-31 20:00:59.770965288 +0200
+++ grub-git-2/util/grub.d/30_os-prober.in 2016-05-31 20:03:04.526960041 +0200
@@ -298,7 +298,7 @@
save_default_entry | grub_add_tab
prepare_grub_to_access_device ${DEVICE} | grub_add_tab
grub_device="`${grub_probe} --device ${DEVICE} --target=drive`"
- mach_device="`echo "${grub_device}" | sed -e 's/(\(hd.*\),msdos\(.*\))/\1s\2/'`"
+ mach_device=`${grub_probe} --device ${DEVICE} --target=compatibility_hint | sed 's/,msdos/s/'`
grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
case "${grub_fs}" in
*fs) hurd_fs="${grub_fs}" ;;
--------------------------------------------------------

Rodrigo V. G. <rodri>

 

Attached Files
file #37324:  grub-diff.txt added by rodri (750B - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by rodri (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-05 phcoder Planned ReleaseNone => 2.03+
    2016-05-31 rodri Attached File- => Added grub-diff.txt, #37324

    Back to the top


    Powered by Savane 3.3