Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 160731

Summary: sys-boot/grub-0.97-r3 DHCP doesn't specify any Vendor class identifier
Product: Gentoo Linux Reporter: Grégoire Baron <baronchon>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: done:0.97-r10
Package list:
Runtime testing required: ---
Attachments: Simple patch to add Vendor class identifier in Grub DHCP client

Description Grégoire Baron 2007-01-07 16:48:05 UTC
Hello,

I use Grub in order to do netboot with PXE. I do Grub starts DHCP session to download a kernel image from TFTP server. That works and it's very nice.
However, I would like my DHCP server gives the special DHCP option 150 used by Grub, only when Grub is the DHCP client. And not when it's the PXEClient or any DHCP client daemon.

At the moment, the only way for the DHCP server to known when gives the option 150, is to interpret the DHCP paramter request list (option 55). And it isn't very easy. So why the Grub DHCP client doesn't specify any Vendor class identifier (option 60) like PXE clients.

I searched and I found there are at least 2 patches proposed in GNU Grub bug tracker (http://savannah.gnu.org/bugs/?group=grub). There are for instance:
 - bug #9451 : DHCP vendor-class-identifier (http://savannah.gnu.org/bugs/?9451)
 - and bug #15608 : [PATCH] pxegrub hangs /w more than one DHCP server (http://savannah.gnu.org/bugs/?15608)
I test only the first one, because it's a very simple patch and because I think it's sufficient. But maybe I make a mistake.

Why doesn't integrate this new feature in a grub-0.97-r4 ?

Regards
Comment 1 Grégoire Baron 2007-01-07 16:56:27 UTC
Created attachment 105871 [details, diff]
Simple patch to add Vendor class identifier in Grub DHCP client

This is the patch I use. It's more or less the same patch than in bug #9451 (http://savannah.gnu.org/bugs/?9451). And it works very well with DHCP server net-misc/dhcp-3.0.3-r9.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-11-05 22:38:12 UTC
Queued for 0.97-r9
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2009-07-04 18:50:27 UTC
Updating the queue marker, it didn't make it into -r9.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-06-25 06:21:21 UTC
Now committed and published as new patchset: grub-0.97-patches-1.10.tar.bz2
Ebuild sys-boot/grub-0.97-r10 committed.