Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Using scriptlet option?
2018-03-15, 09:41 (This post was last modified: 2018-03-16 14:01 by myxal.)
Post: #5
RE: Using scriptlet option?
(2018-03-15 08:44)NiKiZe Wrote:  Just as described in
It sounds like it would be better for you to use some other dhcp option to send the values of those settings
and then pick them up in your normal script, you would add something like this to your script:
EDIT: Just for the record, the correct dnsmasq configuration:
dhcp-option-force=<tag filters...>,128,"live-netdev=eth1"
to reference the value as ${128:string}, or
dhcp-option-force=<tag filters...>,encap:175,82,"live-netdev=eth1"
to reference the value as ${175.82:string}

Anyway, I think I found the closest thing to scriptlet documentation:
Quote:If the "scriptlet" NVO is set, gPXE will execute its value as a script
before executing any embedded script and before attempting to
autoboot. This allows users to override or augment compiled-in boot
behaviour by setting "scriptlet" using the gPXE command line
interface. Scriptlets may be up to 255 characters long, but may be limitted
by available NVO storage.

Useful scriptlets need not be long. Some examples are:
"ifopen net0\nsanboot ${net0/root-path}":
sanboot without DHCP, using NVO "ip", "netmask", and "root-path" settings.
"autoboot\nloopif 1"
autoboot, retrying forever, using the experimental "loopif" command.

Being able to modify boot behaviour without recompiling can be useful
to users under the following circumstances:
* The user does not have tools required to burn a ROM.
* The user cannot conveniently recompile because they use an OS
that cannot rebuild gPXE, or cannot reprogram ROMs.
* The user cannot conveniently access the web (for ROM-o-matic), because
they are in a secure facility without Internet access.
* The user cannot reprogram NICs without removing them from a machine.
(This is a big deal when you have hundreds of machines.)

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Using scriptlet option? - myxal - 2018-03-14, 18:45
RE: Using scriptlet option? - NiKiZe - 2018-03-14, 19:47
RE: Using scriptlet option? - myxal - 2018-03-14, 22:21
RE: Using scriptlet option? - NiKiZe - 2018-03-15, 08:44
RE: Using scriptlet option? - myxal - 2018-03-15 09:41

User(s) browsing this thread: 1 Guest(s)