From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NNvUk-0007F1-GE for mharc-grub-devel@gnu.org; Thu, 24 Dec 2009 16:45:18 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNvUi-0007E5-9A for grub-devel@gnu.org; Thu, 24 Dec 2009 16:45:16 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNvUd-0007CI-KF for grub-devel@gnu.org; Thu, 24 Dec 2009 16:45:15 -0500 Received: from [199.232.76.173] (port=47870 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNvUd-0007CF-EB for grub-devel@gnu.org; Thu, 24 Dec 2009 16:45:11 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:43383 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NNvUd-0004Wx-1G for grub-devel@gnu.org; Thu, 24 Dec 2009 16:45:11 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1NNvUb-00009h-69 for grub-devel@gnu.org; Thu, 24 Dec 2009 22:45:09 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1NNvUa-0003IK-Jv for grub-devel@gnu.org; Thu, 24 Dec 2009 22:45:08 +0100 Date: Thu, 24 Dec 2009 22:45:08 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20091224214508.GO12122@thorin> References: <4B2E7A49.5070901@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4B2E7A49.5070901@gmail.com> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] Add support for (pxe[:server_ip[:gateway_ip]]) and export pxe parameteres into grub environment 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: Thu, 24 Dec 2009 21:45:16 -0000 Hi, On Sun, Dec 20, 2009 at 08:26:01PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > --- ChangeLog.pxeenv 1970-01-01 00:00:00 +0000 > +++ ChangeLog.pxeenv 2009-12-20 19:23:11 +0000 > @@ -0,0 +1,36 @@ > +2009-12-19 Vladimir Serbinenko > + > + Support for (pxe[:server[:gateway]]) syntax and > + use environment variable for PXE. > + > + * commands/i386/pc/pxecmd.c (options): Removed. > + (print_ip): Removed. > + (grub_cmd_pxe): Removed > + (grub_cmd_pxe_unload): New function. > + * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure. > + (grub_pxe_your_ip): Made static. > + (grub_pxe_default_server_ip): Likewise. > + (grub_pxe_default_gateway_ip): Likewise. > + (grub_pxe_blksize): Likewise. > + (parse_ip): New function. > + (grub_pxe_open): Support server and gateway specification. > + (grub_pxe_close): Free disk->data. > + (grub_pxefs_open): Use disk->data. > + (grub_pxefs_read): Likewise. > + (grub_env_write_readonly): New function. > + (set_mac_env): Likewise. > + (set_env_limn_ro): Likewise. > + (parse_dhcp_vendor): Likewise. > + (grub_pxe_detect): Set the environment variables. > + (set_ip_env): New function. > + (write_ip_env): Likewise. > + (grub_env_write_pxe_default_server): Likewise. > + (grub_env_write_pxe_default_gateway): Likewise. > + (grub_env_write_pxe_blocksize): Likewise. > + (GRUB_MOD_INIT(pxe)): Set environment variables. > + * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ... > + (grub_pxe_mac_addr_t): ... this. All users updated. > + (grub_pxe_your_ip): Removed. > + (grub_pxe_server_ip): Likewise. > + (grub_pxe_gateway_ip): Likewise. > + (grub_pxe_blksize): Likewise. This can go directly to trunk, if you consider it suitable. -- Robert Millan "Be the change you want to see in the world" -- Gandhi