* grub2pxe give a specific cfg file per host
@ 2009-10-14 16:46 Yoann Moulin
2009-10-14 18:57 ` Seth Goldberg
0 siblings, 1 reply; 4+ messages in thread
From: Yoann Moulin @ 2009-10-14 16:46 UTC (permalink / raw)
To: grub-devel
Hi,
I'm testing grub2pxe and I'd like to know if it's possible to give
different configfile (diff that grub.cfg) per host/mac address such as
pxelinux does with mac address detection.
option-150 was used for that before but seem to not be implemented with
grub2
I'd like to do something like into the dhcpd.conf file:
host test1 {
hardware ethernet 00:1c:42:01:f8:18;
fixed-address test1.local;
filename "grub2pxe";
option option-150 "/boot/grub/test1.cfg";
}
where /boot/grub/test1.cfg might be a symlink on a default file.cfg or a
specific file.
is that something already implemented ? if not is there any plan for
something like that ?
Test environment :
- Parallels for Mac 4
- boot server runs Centos 5.3
- grep2pxe build from grub-1.97~beta4
- kernel : 2.6.18-164.el5
thanks for your help
Yoann Moulin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: grub2pxe give a specific cfg file per host
2009-10-14 16:46 grub2pxe give a specific cfg file per host Yoann Moulin
@ 2009-10-14 18:57 ` Seth Goldberg
2009-10-15 6:05 ` Yoann Moulin
0 siblings, 1 reply; 4+ messages in thread
From: Seth Goldberg @ 2009-10-14 18:57 UTC (permalink / raw)
To: The development of GRUB 2
Quoting Yoann Moulin, who wrote the following on Wed, 14 Oct 2009:
> Hi,
>
> I'm testing grub2pxe and I'd like to know if it's possible to give
> different configfile (diff that grub.cfg) per host/mac address such as
> pxelinux does with mac address detection.
> option-150 was used for that before but seem to not be implemented with
> grub2
>
> I'd like to do something like into the dhcpd.conf file:
>
> host test1 {
> hardware ethernet 00:1c:42:01:f8:18;
> fixed-address test1.local;
> filename "grub2pxe";
> option option-150 "/boot/grub/test1.cfg";
> }
This is something that's absolutely essential to our customers. It's
something we rely on in Legacy GRUB and it's something that we'll need in
GRUB2 when we make the transition.
--S
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: grub2pxe give a specific cfg file per host
2009-10-14 18:57 ` Seth Goldberg
@ 2009-10-15 6:05 ` Yoann Moulin
2009-10-15 6:54 ` Bean
0 siblings, 1 reply; 4+ messages in thread
From: Yoann Moulin @ 2009-10-15 6:05 UTC (permalink / raw)
To: grub-devel
>> I'm testing grub2pxe and I'd like to know if it's possible to give
>> different configfile (diff that grub.cfg) per host/mac address such as
>> pxelinux does with mac address detection.
>> option-150 was used for that before but seem to not be implemented with
>> grub2
>>
>> I'd like to do something like into the dhcpd.conf file:
>>
>> host test1 {
>> hardware ethernet 00:1c:42:01:f8:18;
>> fixed-address test1.local;
>> filename "grub2pxe";
>> option option-150 "/boot/grub/test1.cfg";
>> }
>
> This is something that's absolutely essential to our customers. It's
> something we rely on in Legacy GRUB and it's something that we'll need
> in GRUB2 when we make the transition.
good :)
but is that mean it's not possible yet to do something like that right now ?
Yoann
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: grub2pxe give a specific cfg file per host
2009-10-15 6:05 ` Yoann Moulin
@ 2009-10-15 6:54 ` Bean
0 siblings, 0 replies; 4+ messages in thread
From: Bean @ 2009-10-15 6:54 UTC (permalink / raw)
To: The development of GRUB 2
On Thu, Oct 15, 2009 at 2:05 PM, Yoann Moulin <informatique@mistur.org> wrote:
>>> I'm testing grub2pxe and I'd like to know if it's possible to give
>>> different configfile (diff that grub.cfg) per host/mac address such as
>>> pxelinux does with mac address detection.
>>> option-150 was used for that before but seem to not be implemented with
>>> grub2
>>>
>>> I'd like to do something like into the dhcpd.conf file:
>>>
>>> host test1 {
>>> hardware ethernet 00:1c:42:01:f8:18;
>>> fixed-address test1.local;
>>> filename "grub2pxe";
>>> option option-150 "/boot/grub/test1.cfg";
>>> }
>>
>> This is something that's absolutely essential to our customers. It's
>> something we rely on in Legacy GRUB and it's something that we'll need
>> in GRUB2 when we make the transition.
>
> good :)
>
> but is that mean it's not possible yet to do something like that right now ?
Hi,
Yeah, it's impossible to do it now. But this feature is not difficult
to add using the tree config loader from my menu branch, I'd post a
patch soon.
--
Bean
gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-10-15 6:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-14 16:46 grub2pxe give a specific cfg file per host Yoann Moulin
2009-10-14 18:57 ` Seth Goldberg
2009-10-15 6:05 ` Yoann Moulin
2009-10-15 6:54 ` Bean
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.