Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OODXV-0003yr-B6 for mharc-grub-devel@gnu.org; Mon, 14 Jun 2010 13:33:37 -0400 Received: from [140.186.70.92] (port=52502 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OODXS-0003uq-KJ for grub-devel@gnu.org; Mon, 14 Jun 2010 13:33:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OODX2-00058a-Nb for grub-devel@gnu.org; Mon, 14 Jun 2010 13:33:09 -0400 Received: from smarthost02.mail.zen.net.uk ([212.23.3.141]:52608) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OODX2-00058N-Gx for grub-devel@gnu.org; Mon, 14 Jun 2010 13:33:08 -0400 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 1OODWx-0004WZ-4y for grub-devel@gnu.org; Mon, 14 Jun 2010 17:33:04 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) for grub-devel@gnu.org id 1OODWw-0006JY-00; Mon, 14 Jun 2010 18:33:02 +0100 Date: Mon, 14 Jun 2010 18:33:02 +0100 From: Colin Watson To: The development of GNU GRUB Message-ID: <20100614173301.GR21862@riva.ucam.org> References: <4C13B6A8.7060102@gmail.com> <4C13C33B.4090302@gmail.com> <4C15044D.9050608@gmail.com> <20100614113702.GN21862@riva.ucam.org> <20100614132536.GO21862@riva.ucam.org> <20100614150251.GA19053@riva.ucam.org> <4C1651BF.9010306@gmail.com> <20100614164310.GQ21862@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost02-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: Which partitioning schemes should be supported by GRUB? X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Jun 2010 17:33:36 -0000 On Mon, Jun 14, 2010 at 09:55:09AM -0700, Seth Goldberg wrote: >>>> === modified file 'kern/i386/pc/init.c' >>>> --- kern/i386/pc/init.c 2010-05-21 18:08:48 +0000 >>>> +++ kern/i386/pc/init.c 2010-06-14 14:44:13 +0000 >>>> @@ -83,6 +83,14 @@ make_install_device (void) >>>> grub_snprintf (ptr, sizeof (dev) - (ptr - dev), ")%s", grub_prefix); >>>> grub_strcpy (grub_prefix, dev); >>>> } >>>> + else if (grub_prefix[1] == ',') >>>> + { >>>> + /* We have a prefix, but still need to fill in the boot drive. */ >>>> + grub_snprintf (dev, sizeof (dev), >>>> + "(%cd%u%s", (grub_boot_drive & 0x80) ? 'h' : 'f', >>>> + grub_boot_drive & 0x7f, grub_prefix + 1); >>>> + grub_strcpy (grub_prefix, dev); >>>> + } > > What about CD devices? Seems like you're limiting to hd and fd here > (though CD may just be an alias for hd198 or something like that). Just > checking :). That part of my patch was just copied from immediately above, so doesn't really change the current state. grub-mkrescue has special code for dealing with CDs and setting an appropriate prefix at run-time from the output of a 'search' command. -- Colin Watson [cjwatson@ubuntu.com]