[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCHv2] os-prober: Fix translating device to mach format

From: Samuel Thibault
Subject: [PATCHv2] os-prober: Fix translating device to mach format
Date: Wed, 14 Mar 2018 14:14:08 +0100

grub-probe --device /dev/sda --target=drive

would currently print on Linux x86 "hostdisk//dev/sda,msdos1", i.e. not
something we can translate easily.  We can instead use compatibility_hint
which have more well-defined format (hd0,1)

Signed-off-by: Samuel Thibault <address@hidden>

new in v2: Fix typo and  be more verbose in changelog
 util/grub.d/ | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/util/grub.d/ b/util/grub.d/
index 515a68c7a..38444fe65 100644
--- a/util/grub.d/
+++ b/util/grub.d/
@@ -297,8 +297,8 @@ menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' 
--class hurd --class gnu -
       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 
+      grub_device="`${grub_probe} --device ${DEVICE} 
+      mach_device="`echo "${grub_device}" | sed -e 
       grub_fs="`${grub_probe} --device ${DEVICE} --target=fs`"
       case "${grub_fs}" in
        *fs)    hurd_fs="${grub_fs}" ;;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]