Received: from list by lists.gnu.org with archive (Exim 4.71) id 1f0TPz-0005pH-4X for mharc-grub-devel@gnu.org; Mon, 26 Mar 2018 10:48:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48619) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0TPu-0005kq-Mi for grub-devel@gnu.org; Mon, 26 Mar 2018 10:48:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0TPr-0004xz-EM for grub-devel@gnu.org; Mon, 26 Mar 2018 10:48:10 -0400 Received: from boksu.net-space.pl ([185.15.1.105]:35719) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1f0TPr-0004x4-1f for grub-devel@gnu.org; Mon, 26 Mar 2018 10:48:07 -0400 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1829786AbeCZOpn (ORCPT ); Mon, 26 Mar 2018 16:45:43 +0200 Date: Mon, 26 Mar 2018 16:45:43 +0200 From: Daniel Kiper To: samuel.thibault@ens-lyon.org, grub-devel@gnu.org Cc: Daniel Kiper Subject: Re: [PATCHv2] os-prober: Fix translating device to mach format Message-ID: <20180326144543.GD13283@router-fw-old.local.net-space.pl> References: <20180314131408.20945-1-samuel.thibault@ens-lyon.org> <20180322141646.GG7226@router-fw-old.local.net-space.pl> <20180322191450.hzekh2q6bsiewf23@var.youpi.perso.aquilenet.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180322191450.hzekh2q6bsiewf23@var.youpi.perso.aquilenet.fr> User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.15.1.105 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Mar 2018 14:48:14 -0000 On Thu, Mar 22, 2018 at 08:14:50PM +0100, Samuel Thibault wrote: > Daniel Kiper, on jeu. 22 mars 2018 15:16:46 +0100, wrote: > > On Wed, Mar 14, 2018 at 02:14:08PM +0100, Samuel Thibault wrote: > > > @@ -297,8 +297,8 @@ menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class hurd --class gnu - > > > EOF > > > 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/'`" > > > + grub_device="`${grub_probe} --device ${DEVICE} --target=compatibility_hint`" > > > + mach_device="`echo "${grub_device}" | sed -e 's/\(hd.*\),msdos\(.*\)/\1s\2/'`" > > > > Why do you drop parentheses here? > > Well, because there are none in the compatibility_hint output :) This is more or less what I expected. Anyway, please take a look at grub-probe and tell me is possible to fix there or not. Daniel