Tips and tricks: Difference between revisions

From FAIWiki
Jump to navigation Jump to search
(adding entry for development helper scripts)
(moving fai-dev helper scripts to helper scripts page...)
Line 1: Line 1:
== FAI development and testing helpers ==
maybe you will find other very helpful infos in [[Helper scripts]]!
I created some scripts that help setting up a FAI developemnt environment, and running builds and tests in there.
At the moment it's mostly about creating fai-cd's and testing them in a qemu vm. Eventually I will add functions for network installation testing with a real hardware host and a qemu client, as well as testing network install with a qemu hist and a qemu client. I am quite interested if someboy finds them useful, they are in subversion:
 
http://svn.debian.org/wsvn/fai/people/lazyboy/fai-dev-helpers/
 
--[[User:Lazyboy|lazyboy]] 11:12, 21 Oct 2005 (CEST)


== User defined subroutines ==
== User defined subroutines ==

Revision as of 09:20, 21 October 2005

maybe you will find other very helpful infos in Helper scripts!

User defined subroutines

If the pre-defined FAI subroutines don't fit or you need additional subroutines, place a file called 'subroutines' in your '$FAI/hooks' and it will be sourced by any installation.

To enable class specific subroutines, create a hook 'defvar.DEFAULT.source' with following content:

#! /bin/bash
for class in ${classes}
do
  [ -r ${FAI}/hooks/subroutines.${class} ] && \
  { echo "Reading subroutines.${class}." ; . ${FAI}/hooks/subroutines.${class} ; }
done
return 0

[jan 16:53, 24 Aug 2005 (CEST)]


Fallback to local boot if no install needed

Rather than forcing a netboot when you want to install, you can run fai-chboot -o default once on the install server. If you have netboot as your first boot option, and local boot as second, your new server will check the fai server, if no install is required, it will boot up normally.

- Greenman (Thanks to MrFai on irc)


Exim4 Ignores Debconf Settings

Exim4 maintains a kind of debconf cache in /etc/exim4/update-exim4.conf.conf. When you use fai-debconf to set exim4 config settings that are held in this file, they will be ignored.

The simplest way around this issue is to remove this cache file before you install the debconf updates.

[Oct 18 2005] Greenman (Thanks to juri on IRC )