[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #48068] Improve/fix Hurd detected device name in 30_os-prober scrip
From: |
Rodrigo ValiñaGutiérrez |
Subject: |
[bug #48068] Improve/fix Hurd detected device name in 30_os-prober script |
Date: |
Tue, 31 May 2016 18:26:57 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0 Iceweasel/38.8.0 |
URL:
<http://savannah.gnu.org/bugs/?48068>
Summary: Improve/fix Hurd detected device name in
30_os-prober script
Project: GNU GRUB
Submitted by: rodri
Submitted on: mar 31 may 2016 18:26:55 GMT
Category: Configuration
Severity: Major
Priority: 5 - Normal
Item Group: Software Error
Status: None
Privacy: Public
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release:
Release: Git master
Reproducibility: Every Time
Planned Release: None
_______________________________________________________
Details:
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}" ;;
--------------------------------------------------------
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?48068>
_______________________________________________
Mensaje enviado vía/por Savannah
http://savannah.gnu.org/
- [bug #48068] Improve/fix Hurd detected device name in 30_os-prober script,
Rodrigo ValiñaGutiérrez <=