User:Holger/FAI: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:
To create a fai-client.rpm on a debian system:
To create a fai-client.rpm on a debian system:


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


== get fai configspace ==
== get fai configspace ==


git clone git://dev.laptop.org/projects/fai-config
$ 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/
Then have a look at fai-config/class/40-olpc-classes and at the fai-config/packages/ and fai-config/scripts/
Line 19: Line 19:
== run fai ==
== run fai ==


run "fai -N softupdate" as root, logs in /var/log/fai/
# fai -N softupdate" # as root

Logfiles will be availablein /var/log/fai/


== fai classes ==
== fai classes ==

Revision as of 23:26, 6 June 2007

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