Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N51zd-0006tV-0S for mharc-grub-devel@gnu.org; Mon, 02 Nov 2009 13:51:05 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N51za-0006rI-CW for grub-devel@gnu.org; Mon, 02 Nov 2009 13:51:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N51zV-0006og-Dn for grub-devel@gnu.org; Mon, 02 Nov 2009 13:51:01 -0500 Received: from [199.232.76.173] (port=55294 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N51zV-0006oY-6J for grub-devel@gnu.org; Mon, 02 Nov 2009 13:50:57 -0500 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:38540) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N51zU-00024P-Py for grub-devel@gnu.org; Mon, 02 Nov 2009 13:50:56 -0500 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost02.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1N51zI-0003eb-S8 for grub-devel@gnu.org; Mon, 02 Nov 2009 18:50:45 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1N51zH-0007cb-00; Mon, 02 Nov 2009 18:50:44 +0000 Date: Mon, 2 Nov 2009 18:50:43 +0000 From: Colin Watson To: The development of GRUB 2 Message-ID: <20091102185043.GJ28534@riva.ucam.org> References: <20091102173329.GZ5001@const.bordeaux.inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20091102173329.GZ5001@const.bordeaux.inria.fr> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] 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 18:51:02 -0000 On Mon, Nov 02, 2009 at 06:33:29PM +0100, Samuel Thibault wrote: > The patch below fixes passing root device to GNU Mach. > With this applied (and some tuning in my hurd /dev/) and my other two > patches, I could successfully run grub-install and boot! > > 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 > =================================================================== > --- util/grub.d/10_hurd.in (révision 2677) > +++ util/grub.d/10_hurd.in (copie de travail) > @@ -72,8 +72,9 @@ > menuentry "${OS}" { > EOF > prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/" > +ROOT_DEVICE=`echo ${GRUB_DEVICE} | sed -e 's:^/dev/::'` > cat << EOF > - multiboot ${kernel} root=device:${GRUB_DEVICE} > + multiboot ${kernel} root=device:${ROOT_DEVICE} > EOF > prepare_grub_to_access_device ${GRUB_DEVICE} | sed -e "s/^/\t/" > cat << EOF 'multiboot ${kernel} root=device:${GRUB_DEVICE#/dev/}' would be simpler and quicker. -- Colin Watson [cjwatson@ubuntu.com]