have a lot of fun with FAI

Holger Levsen hl at hbt.de
Fri Dec 5 17:46:54 CET 2003


Hi,

yesterday I successfully installed, err, deployed SuSE8.0 with FAI ;-)
and indeed, I had a lot of fun... ;-)

Today I was also able to build a fai-bootcd, which is able to install
two differnt Debian systems and one SuSE system.


Deploying SuSE with FAI is pretty easy: do a manual install of SuSE, tar
everything (--exclude /boot --exclude /proc) and put the tar-archive to
FAI_CONFIGDIR/files/hostname.tar.gz

Now, just insert two hooks:

---------mountdisk.hostname----------------------------------------
#! /bin/sh

# Holger Levsen, hl at hbt.de, 2003-12-03+04
# $Id: mountdisks.nas02,v 1.1 2003/12/04 16:54:09 hl Exp $

# now skip some tasks
skiptask extrbase mirror updatebase instsoft configure finish
-------------------------------------------------------------------

and 

---------mountdisk.hostname----------------------------------------
#! /bin/sh

# Holger Levsen, hl at hbt.de, 2003-12-03+04
# $Id: chboot.nas02,v 1.1 2003/12/04 16:54:09 hl Exp $

# extract /fai/files/hostname.tar.gz
#
#       generated with the following command on nas02:
#               tar czvf /backup/hostname.tar.gz / --exclude /backup--exclude /proc --exclude /boot
ftar / > /dev/null 2>&1
mkdir $target/proc

fcopy /boot/vmlinuz.suse /boot/initrd.suse /boot/System.map-2.4.18-4GB
fcopy /etc/lilo.conf

# we also have to copy debian's lilo, since it's v22.2 and suse 8.0 only uses 22.1
fcopy /sbin/lilo /sbin/lilo.real

# call lilo
$target/sbin/lilo -r $target
-------------------------------------------------------------------


Thanks Thomas & Niall and all the other free software developers!

happy weekend,
	Holger

-- 
  
Hamburger Berater Team GmbH     Telefon: 040/369779-0
Stadthausbrücke 3 (Fleethof)    Telefax: 040/369779-99
20355 Hamburg                   eMail  : hl at hbt.de
				Web    : http://www.hbt.de





More information about the linux-fai mailing list