Providing Defaults to class/ scripts
Thomas Neumann
blacky+fai at fluffbunny.de
Fri Oct 16 13:16:58 CEST 2009
>> If you name your script 00foobar.source it will be executed first _and_
>> sourced, therefore all variable definitions from 00foobar.source will
>> also be visible in all other scripts. You might need to export the
>> variable to have it available in the entire FAI run, but that I'm not
>> sure of.
> AFAIR this doesn't work - fai-class runs in a subshell so any variables
> you export in class/*.source will only be available during fai-class
> execution. Workaround is to write a temporary file which you later
> source from class/SOMETHING.var.
I had already implemented the second step (fai-wide), but was missing out
on the first (fai-class specific).
for fai-wide configuration there are at least two options:
static:
- drop a <xyz>.var file into class/
dynamic:
- create a symbolic link <xyz>.var in class/ which points to /tmp/<file>
- write required content to /tmp/<file> during fai execution
tschüß
thomas
More information about the linux-fai
mailing list