Providing Defaults to class/ scripts (was:: Adding to $kernelmodules)
Thomas Neumann
blacky+fai at fluffbunny.de
Fri Oct 16 13:59:05 CEST 2009
hiya
>> contents of /srv/fai/config/class/01-init.source
>> ---
>> #!/bin/bash
>>
>> TESTVAR="foobar"
>> export TESTVAR
>> ---
> So ... does that work? IMHO it should, but as Michael Goetze said, you
> probably cannot do more than this, like use $TESTVAR in some *.var files
> or somewhere later on. Could you verify this?
in class/ it works, in scripts/ it doesn't
Result follows prediction.
How to make both sides work:
contents of /srv/fai/config/class/01-init.source
---
#!/bin/bash
TESTVAR="foobar"
export TESTVAR
echo "TESTVAR=$TESTVAR" >> /tmp/MyDefaults.var
newclasses="MyDefaults"
> ---
where $FAI/class/MyDefaults.var is a symbolik link to /tmp/MyDefaults.var
tschüß
thomas
More information about the linux-fai
mailing list