GNU 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
Submitter: | Rodri <rodri> | ||
Submitted: | 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: | Git master |
Release: | Reproducibility: | Every Time | |
Planned Release: | 2.03+ |
Attached Files
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2017-03-05 | phcoder | Planned Release | None | 2.03+ | |
2016-05-31 | rodri | Attached File | - | Added grub-diff.txt, #37324 |
Powered by Savane 3.13-f8d8.
Corresponding source code
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}" ;;
--------------------------------------------------------