Providing Defaults to class/ scripts (was:: Adding to $kernelmodules)

Thomas Neumann blacky+fai at fluffbunny.de
Thu Sep 24 19:31:43 CEST 2009


hiya

> $kernelmodules is the right way to do this, but not in
> FAIBASE.var. The variable is used in 20-hwdetect.source, which is
> executed before FAIBASSE.var is sourced. You can just edit your
> 20-hwdetect.source script and add modules there to $kernelmodules.

Is there a "correct" way to provide variables to scripts in class/ ?

Currently I'm manually sourcing a specific file into (almost) each class/
script. In the following steps (partitioning, packages, configure) I use
the <file>.var mechanism. I'm searching for something close to that for
class/ itself. Maybe DEFAULT.var could be sourced even before class/ has
run? The DEFAULT class is announced automatically later on anyway.

(What for? Inside class/ I'm writing some configuration stuff into a
special config file. The class scripts all manually source DEFAULT.var in
order to find out where the variable IDENTITYFILE points to. The other
scripts (most importantly config/*) later on just "source $IDENTITYFILE"
wherever that variable may point to.)

tschüß
thomas



More information about the linux-fai mailing list