From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OsQTB-0001Ck-MX for mharc-grub-devel@gnu.org; Sun, 05 Sep 2010 21:26:01 -0400 Received: from [140.186.70.92] (port=34223 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OsQT8-0001Cf-Nj for grub-devel@gnu.org; Sun, 05 Sep 2010 21:25:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OsQT7-0000q0-Kr for grub-devel@gnu.org; Sun, 05 Sep 2010 21:25:58 -0400 Received: from mail.nebonet.com ([69.168.69.3]:55157) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OsQT7-0000ps-DX for grub-devel@gnu.org; Sun, 05 Sep 2010 21:25:57 -0400 Received: from localhost (scanner.noc.nebonet.com [10.255.255.4]) by mail.nebonet.com (Postfix) with ESMTP id 71B1019D988 for ; Sun, 5 Sep 2010 19:25:56 -0600 (MDT) Received: from [69.168.72.100] (virtualuplink.omniflux.com [69.168.72.100]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: josh@mail.nebonet.com) by mail.nebonet.com (Postfix) with ESMTPSA id B210F19D965 for ; Sun, 5 Sep 2010 19:25:55 -0600 (MDT) Message-ID: <4C84430F.3040100@omniflux.com> Date: Sun, 05 Sep 2010 19:25:35 -0600 From: Omni Flux User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.8) Gecko/20100802 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: The development of GNU GRUB References: <4C818D2D.5060907@gmail.com> <4C8422E4.2050002@omniflux.com> <4C84284E.309@gmail.com> In-Reply-To: <4C84284E.309@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) Subject: Re: [RFT] PXE chainloader 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, 06 Sep 2010 01:26:00 -0000 On 2010-09-05 17:31, Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > On 09/06/2010 01:08 AM, Omni Flux wrote: >> The output of two tests follow. It works, to an extent. Is PXE being >> left in a state where the next bootloader can call it's initialization >> routines again? >> > Attached patch may help. I noticed that last file may still remain open= ed. With this fix grub PXE can chain load itself recursively and load=20 pxelinux successfully. Unfortunately pxelinux then tries to find its configuration file in the=20 wrong location because it takes the path from the boot file in the DHCP=20 packet saved by PXE, which it expects to be pointing to itself but is=20 actually pointing to grub itself. I am not sure this is something we can reasonably fix, but it can be=20 worked around by putting the pxelinux.cfg configuration in the same=20 location as grub PXE. Unfortunately, this means we cannot just download arbitrary distro=20 installers, drop them in the tftp directory and point grub to their=20 bootloaders. Ideally, but probably not reasonable and/or possible would be if we=20 could mangle the DHCP packets before chainloading so we could change the=20 boot loader string and even add custom vendor options (either of which=20 would allow specifying a different pxelinux.cfg location per menu item.) I do not have any other PXE images to try, so I do not know if this=20 issue affects any boot loaders besides pxelinux. --=20 Omni Flux