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: ConfigurationSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: Git masterReproducibility: 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
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by rodri (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 05 Mar 2017 07:13:59 PM UTCphcoderPlanned ReleaseNone=>2.03+
    Tue 31 May 2016 06:29:12 PM UTCrodriAttached File-=>Added grub-diff.txt, #37324

    Back to the top


    Powered by Savane 3.1-cleanup1