Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N50mh-0001Zx-Kc for mharc-grub-devel@gnu.org; Mon, 02 Nov 2009 12:33:40 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N50mf-0001ZM-Db for grub-devel@gnu.org; Mon, 02 Nov 2009 12:33:37 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N50ma-0001YW-VL for grub-devel@gnu.org; Mon, 02 Nov 2009 12:33:36 -0500 Received: from [199.232.76.173] (port=55988 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N50mZ-0001YJ-Ta for grub-devel@gnu.org; Mon, 02 Nov 2009 12:33:32 -0500 Received: from mail1-relais-roc.national.inria.fr ([192.134.164.82]:57245) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1N50mZ-00075m-EN for grub-devel@gnu.org; Mon, 02 Nov 2009 12:33:31 -0500 X-IronPort-AV: E=Sophos;i="4.44,668,1249250400"; d="scan'208";a="39388662" Received: from unknown (HELO const.ipv6) ([193.50.110.76]) by mail1-relais-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 02 Nov 2009 18:33:29 +0100 Received: from samy by const.ipv6 with local (Exim 4.69) (envelope-from ) id 1N50mX-0003w0-RI for grub-devel@gnu.org; Mon, 02 Nov 2009 18:33:29 +0100 Date: Mon, 2 Nov 2009 18:33:29 +0100 From: Samuel Thibault To: grub-devel@gnu.org Message-ID: <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 User-Agent: Mutt/1.5.12-2006-07-14 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [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 17:33:38 -0000 Hello, 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