User:Holger/FAI

From OLPC
Jump to: navigation, search

get fai

If you install a schoolserver with the live-installer, fai is already installed.

To create a fai-client.rpm on a debian system:

$ svn co svn://svn.debian.org/svn/fai/people/h01ger/softupdate-git-rpm fai
$ cd fai
$ dpkg-buildpackage -rfakeroot
$ cd ..
$ fakeroot alien -r fai-client*deb

get fai configspace

$ git clone git://dev.laptop.org/projects/fai-config

Then have a look at fai-config/class/40-olpc-classes and at the fai-config/packages/ and fai-config/scripts/

run fai

# fai -N softupdate" # as root

Logfiles will be availablein /var/log/fai/

fai classes

Each system can belong to many classes. each class defines packages which get installed for that class, scripts that get run and other stuff.

The classes have priorities, the class which gets defined first, has the lowest priority, the class which gets defined, last, the highest. The lowest is always DEFAULT, the second-highest is the hostname and the highest is always LAST.

The priorities define the order in which fai-config/scripts/ is executed and which template (from fai-config/files/) is used for fcopy.

FEDORA

basic class for rpm system, fedora7 for now

XSDEVEL

class for xs developers, adds them to wheel group

Currently those are wad, danjared, cjb and holger

FEDORAMIRROR

class to setup a fedora mirror, updated via cron

LIVECDBUILD

class to setup a xs-live-installer, build via cron

SCHOOLSERVER

class to setup XSs

logfiles

reside in /var/log/fai and on a logserver, not yet setup