[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ next ]
This chapter has various hints which may not always be explained in great detail.
To generate a md5 hash for the password use this echo "yoursecrectpassword" | mkpasswd -Hmd5 -s
When using HTTP access to a Debian mirror, the local /var partition on all install clients must be big enough to keep the downloaded Debian packages. Do not try with less than 250 Mbytes unless you know why. You can limit the number of packages installed at a time with the variable $MAXPACKAGES.
You can shorten some scripts by using one single fcopy command fcopy -r /.
If you rebuild the nfsroot, you will create a new ssh host key inside the nfsroot. Then logging in to an install client may fail, because the host key changes. You can use this:
ssh -o StrictHostKeyChecking=no root@installclient
You can calculate the IP subnet adress (which is used in
/etc/fai/make-fai-nfsroot.conf
for the variable
FAICLIENTS by using the nice tool ipcalc. Following example gives
you the notation for a class C network (16) when the server netork interface
has the IP address 123.45.6.123
ipcalc -nb 123.45.6.123 16|grep Network:
You can merge two directories which contain configuration information, if one is a global one, and the other a local one. We use it to merge the templates from the FAI package, and our local configuration, which contains encrypted passwords and other information that should not be readable by others. If you remove a file in your local configuration, do not forget to remove this file also in the configuration space, otherwise it will still be used.
After calling set-disk-info
, a list of all local hard disks is
stored in $disklist and $device_size contains a list of
disk devices and their sizes.
Use fai-divert -a
if a postinst script calls a configuration
program, e.g. the postinst script for package apache calls apacheconfig, which
needs manual input. You can fake the configuration program so the installation
can be fully automatic. But don't forget to use fai-divert -R
to
remove all faked scripts.
During the installation you can execute commands inside the newly installed system in a chroot environment by using chroot /target or just $ROOTCMD followed by the command you want to call; for example $ROOTCMD dpkg -l shows the packages installed on the new system.
If your computer can't boot from the network card, you do not always need to boot from floppy. Add the class FAI_BOOTPART and FAI will automatically create a lilo or grub entry for booting the FAI bootfloppy from this partition. So you can start the re-installation without a boot floppy. This will also make the test phase shorter, since booting from hard disk is much faster than booting from floppy. You can also set a password for this boot menu.
On www.layer-acht.org
/fai
you will find an example
how to fully automatically install a system using the Debian Installer (d-i) in
conjunction with FAI's new softupdate (see Using FAI for updates, Section 10.2).
[ previous ] [ Contents ] [ 1 ] [ 2 ] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ next ]
FAI Guide (Fully Automatic Installation)
FAI Guide version 2.6.8, 7 December 2007 for FAI package version 3.2.1lange@informatik.uni-koeln.de