Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyAJN-0006k1-Ky for mharc-grub-devel@gnu.org; Tue, 12 Jun 2007 13:37:45 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyAJL-0006js-Jz for grub-devel@gnu.org; Tue, 12 Jun 2007 13:37:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyAJJ-0006jV-6D for grub-devel@gnu.org; Tue, 12 Jun 2007 13:37:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyAJJ-0006jS-0q for grub-devel@gnu.org; Tue, 12 Jun 2007 13:37:41 -0400 Received: from m15-111.126.com ([220.181.15.111]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1HyAJH-0004wJ-OW for grub-devel@gnu.org; Tue, 12 Jun 2007 13:37:40 -0400 Received: from localhost (unknown [121.51.43.211]) by smtp1 (Coremail) with SMTP id wKjJCwtAoDXc2W5GQQUQBQ==.40932S2; Wed, 13 Jun 2007 01:37:33 +0800 (CST) Date: Wed, 13 Jun 2007 01:37:15 +0800 From: Bean To: The development of GRUB 2 Message-ID: <20070612173714.GA621@ws3.vdp.com> References: <20070612135412.GA1683@aragorn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070612135412.GA1683@aragorn> User-Agent: Mutt/1.5.13 (2006-08-11) X-Coremail-Antispam: 1U3Yxn0WfASr-VFAUDIcSsGvfJTRUUUj8xFxVCF77xC6IxKo4 kEV4ylIxAIcVC2z280aVAFwI0_Jr0_Gr1lnxkEFVAIw20F6cxK64vIFxWlx4CE17CEb7AF 67AKxVWUJVWUXwCjxxvEw4Wle4C267I2x7xF54xIwI1lYx0E2Ix0cI8IcVAFwI0_Jr0_Jr 4l4x8a6c8ajcxJMcIj6I8E87Iv67AKxVWUJVW8JwAFxVCaYxvI4VCIwcAKzIAtMxkI7II2 jI8vz4vEwIxGrwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UM7AC8VAFwI0_Jr0_Gr1lb4 IE77IF4wAFIxvE14AKwVWUJVWUGwAqx4xG64xvF2IEw4CE5I8CrVC2j2Wlb7Iv0xC_CrUa nT9S1TB71UUUUUUa7-sFnT9fnUUI43ZEXa7IUeUCztUUUUUFnT9fnsW5pF18Ww17Zr45CF WDZrW5uF4xXoXrpFyfuoWxAryUXanFqrsxKayDKrnrCFyIgr1ktr9rA3yUWr4rKw1DJ39F yw12ya47Wa9rJryFka43GFyFqayrurn0qF1r= X-detected-kernel: Linux 2.4-2.6 Subject: Re: grub_prefix 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: Tue, 12 Jun 2007 17:37:43 -0000 On Tue, Jun 12, 2007 at 03:54:12PM +0200, Robert Millan wrote: > > Is there any reason why grub_prefix is in boot.img rather than core.img ? > > This brings problems when the following conditions are met: > > - core.img is loaded directly without boot.img (via GRUB Legacy) > - grub is not in /boot/grub (typicaly, when /boot is a separate partition) > > If grub_prefix is moved to core.img, then grub-mkimage could be modified to > override prefix, supporting this setup. > > Is this a good way to fix it? > I believe grub_prefix IS in core.img. It begins at 0x21C from the beginning of core.img. You may also want to modify the variable grub_install_dos_part at 0x214, for example, if booting from the first partition, set it to 0. The above variables are defined in kern/i386/pc/startup.S. -- Bean