Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1N4Ii1-0000bd-BI for mharc-grub-devel@gnu.org; Sat, 31 Oct 2009 14:29:53 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N4Ihz-0000aM-FP for grub-devel@gnu.org; Sat, 31 Oct 2009 14:29:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N4Ihu-0000Wl-Ml for grub-devel@gnu.org; Sat, 31 Oct 2009 14:29:50 -0400 Received: from [199.232.76.173] (port=39217 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N4Ihu-0000Wb-FW for grub-devel@gnu.org; Sat, 31 Oct 2009 14:29:46 -0400 Received: from mail-yx0-f191.google.com ([209.85.210.191]:54502) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N4Ihu-0000Mh-6P for grub-devel@gnu.org; Sat, 31 Oct 2009 14:29:46 -0400 Received: by yxe29 with SMTP id 29so3677390yxe.14 for ; Sat, 31 Oct 2009 11:29:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=N4Fd8JDzvB4QWxlbJuGUMDLIxpOKJvtMbvFj6LmHyCU=; b=SZRwYT2Velt8lRd6N7r9ZZLYXzvUNVAJFu5O0IwJfZL/dm0GmBl6C2h/dEwYw9c0Yt 6DWLUi/RCXKtLr/ospdf+Z7Em787S60rbU+UPeAXb/iSj/g3BUm6Xmrbp71jEvjmcJFx 4j/o0xrbrj7ggl+5v2q1+Z5mBAOZOWNAp4DkM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=IGwJde/UfgxRYrCog6Wm2BcxqYAAtbfs76DSNDntZUWA5w45NpH9p1iKVydp0vvwsy Bri6Qknu8soJTiDsvyR+sSMYlXllPqEeJtQ8BxZjkgXMshIjfS6g82ljdYv02r3rCVya 6jMwX2AWAiGljF8NU2+JG/TKxxCcECTcSaTyQ= MIME-Version: 1.0 Sender: djvasi@gmail.com Received: by 10.91.50.29 with SMTP id c29mr7105015agk.63.1257013785750; Sat, 31 Oct 2009 11:29:45 -0700 (PDT) In-Reply-To: References: Date: Sat, 31 Oct 2009 14:29:45 -0400 X-Google-Sender-Auth: 5920b344e9e79b85 Message-ID: From: Dave Vasilevsky To: grub-devel@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: GPT BIOS boot partition and installing to a partition 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: Sat, 31 Oct 2009 18:29:51 -0000 On my GPT-partitioned MacBook, I seem to have two options for booting with grub-pc: 1. Install grub to the start of an existing partition. This coexists well with the rEFIt boot menu, but requires blocklists to load core.img. 2. Use a BIOS boot partition. This allows embedding core.img, but installs to the MBR and makes rEFIt unhappy. I had the idea that we could get the advantages of both: Install the boot-image to an existing partition, but load core.img from a BIOS boot partition. With some creative hex-editing I got this working without much difficulty. Is there a technical reason why grub doesn't support this setup? If I were to write a patch allowing this, what behaviour would be preferred: Should 'grub-setup (hdX,Y)' automatically use a BIOS boot partition if one exists, or should a command-line flag be required? Dave Vasilevsky