K, here go's
My example shows my need for "option root-path" for Linux Terminal Server" and PXE booting
Install PC-BSD on a spare PC or Virtual Machine.
Make a new directory. I used "mono".
Download your needed monowall image into this directory.
Download "workon.sh" script from
http://chrisbuechler.com/index.php?id=20 into this same directory.
Note: The "workon.sh" script has more instruction's on how to use it.
Open a terminal and type "su". enter your root password
cd into your mono directory and type "chmod +x workon.sh"
Now to extract the image type, for example "./workon.sh net48xx-1.23.img"
Now you can modify the image how you want before repacking it.
K, now I'm not real comfortable using VI for editing. I like to use a GUI editor and will explain how I used "KEdit" as root to do it. You need to edit as root.
Open a new terminal and type "su" and enter your root password.
Now type "kedit". Your are running KEdit as root
Now the changes to the image.
With KEdit, click "File" then "Open" and Browse to and open <your-home-dir>/mono/mnt2/etc/inc/services.inc
Look for these lines in services.inc
if ($dhcpifconf['next-server'])
$dhcpdconf .= " next-server {$dhcpifconf['next-server']};\n";
if ($dhcpifconf['filename'])
$dhcpdconf .= " filename \"{$dhcpifconf['filename']}\";\n";
Enter this line directly under it.
if ($dhcpifconf['root-path'])
$dhcpdconf .= " option root-path \"{$dhcpifconf['root-path']}\";\n";
Save and exit KEdit.
Type "exit" in the terminal where you started the "workon.sh" script to repack the image.
That it, Your done.
Upload your new image
Now you have and extra option in your config.xml
Mine looks like this.
<next-server>192.168.1.101</next-server>
<filename>/ltsp/i386/pxelinux.0</filename>
<root-path>/opt/ltsp/i386</root-path>
Hope this helps get what you need.
You could probably setup something like this.
<option1>time server</option1>
<option2>something else</option2>
<option3>something else</option3>
<option4>something else</option4>
If you don't enter the tag in the config.xml, it doesn't get written to the dhcpd.conf.
Good Luck,
-slick
Kudo's/Credits:
Manuel Kasper
Jeb Campbell
Chris Buechler