Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N52PV-0004WT-9W for mharc-grub-devel@gnu.org; Mon, 02 Nov 2009 14:17:49 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N52PS-0004U9-Ed for grub-devel@gnu.org; Mon, 02 Nov 2009 14:17:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N52PN-0004LJ-Gl for grub-devel@gnu.org; Mon, 02 Nov 2009 14:17:45 -0500 Received: from [199.232.76.173] (port=43128 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N52PN-0004L9-Dh for grub-devel@gnu.org; Mon, 02 Nov 2009 14:17:41 -0500 Received: from solo.fdn.fr ([80.67.169.19]:47912) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N52PN-00067H-1n for grub-devel@gnu.org; Mon, 02 Nov 2009 14:17:41 -0500 Received: from const.ipv6 (youpi.is-a-geek.org [80.67.176.89]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by solo.fdn.fr (Postfix) with ESMTP id 048504424C for ; Mon, 2 Nov 2009 20:17:40 +0100 (CET) Received: from samy by const.ipv6 with local (Exim 4.69) (envelope-from ) id 1N52PK-0002iD-Ap for grub-devel@gnu.org; Mon, 02 Nov 2009 20:17:38 +0100 Date: Mon, 2 Nov 2009 20:17:38 +0100 From: Samuel Thibault To: The development of GRUB 2 Message-ID: <20091102191738.GI4515@const.famille.thibault.fr> References: <20091102173329.GZ5001@const.bordeaux.inria.fr> <20091102185043.GJ28534@riva.ucam.org> <20091102185336.GG4515@const.famille.thibault.fr> <1257188779.3299.2.camel@fz.local> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1257188779.3299.2.camel@fz.local> User-Agent: Mutt/1.5.12-2006-07-14 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH,HURD] Fix root device passing X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Nov 2009 19:17:46 -0000 Felix Zielcke, le Mon 02 Nov 2009 20:06:19 +0100, a =E9crit : > Am Montag, den 02.11.2009, 19:53 +0100 schrieb Samuel Thibault: > > Colin Watson, le Mon 02 Nov 2009 18:50:43 +0000, a =E9crit : > > > 'multiboot ${kernel} root=3Ddevice:${GRUB_DEVICE#/dev/}' would be s= impler > > > and quicker. > >=20 > > And will not work on some systems. > >=20 > > Samuel >=20 > Which ones? Solaris for instance. > I just looked in POSIX.1-2008 and it defines it. > Both bash and dash supports it. Fortunately, yes. > Note that 10_hurd only gets installed if the host kernel is HURD. Ah, then ok. > Is there any HURD based distribution avaible besides Debian? There is the GNU distribution yes. In any case it's probably safe to assume that a GNU system uses at least a POSIX2008-compliant dash or posh. Here is an updated patch. Samuel 2009-11-02 Samuel Thibault * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path= before giving it to GNU Mach. Index: util/grub.d/10_hurd.in =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- util/grub.d/10_hurd.in (r=E9vision 2677) +++ util/grub.d/10_hurd.in (copie de travail) @@ -73,7 +73,7 @@ EOF prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/" cat << EOF - multiboot ${kernel} root=3Ddevice:${GRUB_DEVICE} + multiboot ${kernel} root=3Ddevice:${GRUB_DEVICE#/dev/} EOF prepare_grub_to_access_device ${GRUB_DEVICE} | sed -e "s/^/\t/" cat << EOF