Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKhPb-0006DS-Iv for mharc-grub-devel@gnu.org; Thu, 31 Jan 2008 16:57:35 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKhPZ-0006D7-Tq for grub-devel@gnu.org; Thu, 31 Jan 2008 16:57:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKhPY-0006Ce-12 for grub-devel@gnu.org; Thu, 31 Jan 2008 16:57:32 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKhPX-0006CY-IU for grub-devel@gnu.org; Thu, 31 Jan 2008 16:57:31 -0500 Received: from flatline.sindominio.net ([82.144.4.26]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JKhPW-0002z9-NT for grub-devel@gnu.org; Thu, 31 Jan 2008 16:57:31 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by flatline.sindominio.net (Postfix) with ESMTP id C0D15A0071EF for ; Thu, 31 Jan 2008 22:57:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at sindominio.net Received: from flatline.sindominio.net ([127.0.0.1]) by localhost (flatline.sindominio.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JbviaiQqLHx6 for ; Thu, 31 Jan 2008 22:57:21 +0100 (CET) Received: from nubol.oskuro.net (17.pool85-52-167.static.orange.es [85.52.167.17]) by flatline.sindominio.net (Postfix) with ESMTP id 25FBBA0D2C66 for ; Thu, 31 Jan 2008 22:57:16 +0100 (CET) Received: by nubol.oskuro.net (Postfix, from userid 1000) id 6F6CA3AED85; Thu, 31 Jan 2008 22:57:12 +0100 (CET) Date: Thu, 31 Jan 2008 22:57:12 +0100 From: Jordi Mallach To: grub-devel@gnu.org Message-ID: <20080131215712.GA16531@nubol.oskuro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Content-Transfer-Encoding: quoted-printable X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: OF device names and util/biosdisk.c 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: Thu, 31 Jan 2008 21:57:34 -0000 jordi@horta:~$ sudo grub-mkdevicemap --device-map=3D/dev/stdout (hd) /dev/hda However, grub-probe totally doesn't like the lack of drive number: jordi@horta:~$ sudo grub-probe /boot/grub=20 grub-probe: error: /boot/grub/device.map:1: Bad device name If I edit my device.map and add a drive number, say hd0: jordi@horta:~$ sudo grub-probe /boot/grub hfs util/biosdisk.c assumes: if (drive < 0 || drive >=3D (int) (sizeof (map) / sizeof (map[0]))) show_error ("Bad device name"); Can this be ifndef GRUB_MACHINE_PCBIOS'd? Jordi --=20 Jordi Mallach P=E9rez -- Debian developer http://www.debian.org/ jordi@sindominio.net jordi@debian.org http://www.sindominio.net/ GnuPG public key information available at http://oskuro.net/