FAI Classes

James james at nttmcl.com
Thu Jan 17 19:21:58 CET 2008


Henning Sprang wrote:
> Look at the simple examples in /usr/share/fai-doc/examples/simple -
> you're welcome to ask further questions, but please look at the guide
> again, and tell us more which sections are too hard to understand... and
> if it is a language problem, or just understanding.
>
> Henning
>   
Ok i think i'm starting to understand all this now.

Last thing i need to figure out is this.

So now i have the entire class called TEST

i've created a line in config/class/50-host-classes
like :
################################################
case $HOSTNAME in
    test)
        echo "FAIBASE DHCPC TEST" ;;
################################################

i created a disk profile at config/disk_config/TEST
################################################
disk_config disk1
primary  /             150-300      rw,errors=remount-ro ; -c -j ext3
logical  swap          40-500      rw
logical  /var          90-1000     rw                   ; -m 5  -j xfs
logical  /tmp          50-1000     rw                   ; -m 0 -j xfs
logical  /usr          200-4000    rw                   ; -j xfs
logical  /home         50-         rw,nosuid            ; -m 1 -j xfs
# logical /home        preserve9   rw,nosuid            ; -m 1 -j ext3
################################################

i created a config/package_config/TEST
################################################
PACKAGES aptitude
postfix
################################################


that's about it because i just want to test it as simply as possible 
right now.

So how do i get the bootfloppy to call the "TEST" class?

do i just do a
#> make-fai-bootfloppy -s TEST ip=::::::dhcp 
nfsroot=127.x.x.x:/srv/fai/nfsroot

cause that's my understanding now. if not please let me know


On a side not it's not the actual english in the documentation that's 
hard to understand.
It's just how to narrow down some of the information and filter out what 
i didn't need.
In a more complex setup i imagine i'll be using most to all of the info 
but right now things are pretty simple i just need a few custom packages 
here and there and how to instruct a boot floppy/cd to grab that class.
Maybe a guide for the impatient on creating a class by example and cut 
out the big details.
i personally would find that useful. :D

Thanks
-James



More information about the linux-fai mailing list