Class Reading order

Ryan Steele ryans at aweber.com
Fri Feb 6 15:09:07 CET 2009


Ryan Steele wrote:
> Adrian Gibanel Lopez wrote:
>> Hi FAI list,
>>
>> Here I am again.
>> I am writing some documentation for my thesis on how FAI understand classes.
>>
>> Let's suppose that I define my own class XUBUNTUDESKTOP.
>> I mean I edit 50-host-classes and I add:
>>
>>   xubuntudesktop*)
>>   	echo "FAIBASE DHCPC XUBUNTUDESKTOP";;
>>
>> Let's suppose that I add a file
>> named XUBUNTUDESKTOP in the package_config dir in the fai configuration
>> folder
>> so that install the xubuntu-desktop metapackage.
>>
>>
>> Is it correct to say:
>>
>> FAI will automatically install the packages found on these files (in this
>> order): XUBUNTUDESKTOP, DHCPC, FAIBASE, DEFAULT, LAST and finally as an
>> option a file that has the same name as the host we are installing?
>>
>> There are some implicit questions here:
>>    - The latter defined class gets more preference?
>>    - DEFAULT is it class that it is always interpreted?
>>    - LAST is it class that it is always interpreted?
>>
>> Thank you very much for your help.
> 
> I asked a similar question awhile back - you might try searching the
> archives.
> 
> Respectfully,
> Ryan

But to answer parts of your question I didn't ask, the lowercase
hostname class gets applied before LAST.  LAST, as it is aptly named, is
applied last.  You can check your fai.log to see the order in which
they're processed.

Respectfully,
Ryan


More information about the linux-fai mailing list