All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yoann Moulin <informatique@mistur.org>
To: grub-devel@gnu.org
Subject: grub2pxe give a specific cfg file per host
Date: Wed, 14 Oct 2009 18:46:28 +0200	[thread overview]
Message-ID: <4AD60064.5020807@mistur.org> (raw)

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



             reply	other threads:[~2009-10-14 16:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-14 16:46 Yoann Moulin [this message]
2009-10-14 18:57 ` grub2pxe give a specific cfg file per host Seth Goldberg
2009-10-15  6:05   ` Yoann Moulin
2009-10-15  6:54     ` Bean

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AD60064.5020807@mistur.org \
    --to=informatique@mistur.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.