From: hackbard Date: Mon, 2 Aug 2004 09:37:47 +0000 (+0000) Subject: some more FAI stuff X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=5ec575d2b0a8b430079f5dd375565fd99876db19;p=hdw-linux%2Fhdw-linux.git some more FAI stuff --- diff --git a/doc/FAI b/doc/FAI index 9f65bcf..2cbfa00 100644 --- a/doc/FAI +++ b/doc/FAI @@ -1,6 +1,5 @@ # hdw - linux FAI file - whats this? ----------- explains how to setup a networked computer acting as dhcp/pxeboot/nfsroot fully @@ -13,8 +12,6 @@ files: ./scripts/Create-FAI ./doc/FAI -[not finished yet] - procedure --------- @@ -32,4 +29,28 @@ procedure ./misc/hdw-tools/hdw-get dist-install /mnt/fai-root \ ./distro/default - [to be continued] + 2) prepare nfsroot & mount ./fai dir via loopback for configurations + + ./scripts/Create-FAI /mnt/fai-root + + 4) adapt configs in ./fai (see chapter "fai config files") + + 3) edit the following files to match your needs, and restart services + + /etc/dhcpd.conf + /etc/inetd.conf + /etc/exports + /tftpboot/pxelinux.cfg/{default,*} + + (have a look at chapter "fai server configuration") + + 4) pxeboot your install candidates and watch installation + + +fai config files +---------------- + +fai server configuration +------------------------ + +[to be continued] diff --git a/scripts/Create-FAI b/scripts/Create-FAI index 36ad9fe..cc3e6e6 100755 --- a/scripts/Create-FAI +++ b/scripts/Create-FAI @@ -5,6 +5,18 @@ # script creating a minimal system nfsroot for automated installation of hdw # -echo "not supported yet" -echo "i'm sorry" +fairoot="$1" +usage() { + echo + echo "usage:" + echo "$1 " + echo + exit + } + +if [ ! -d $fairoot -o ] ; then + usage +fi + +echo "preparing