[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-fai
Subject:    Providing Defaults to class/ scripts (was:: Adding to $kernelmodules)
From:       "Thomas Neumann" <blacky+fai () fluffbunny ! de>
Date:       2009-09-24 17:31:43
Message-ID: 6d52de1167e3d101891ec3d6f4aadcf9.squirrel () webmail ! fluffbunny ! de
[Download RAW message or body]

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic