On 2/15/2013 20:20, George VerDuin wrote:
If not -- I'll slog away until I have joy in holding my first fai-built client.
Hi, Geo, Sorry to here that you are having so much trouble. I have installed a few HDDs with the following home-brew script with a fresh net install of Debian Squeeze 6.0.6 (using FAI of course) but without DHCP. Perhaps you may want to try? It takes a long time because of the command "/usr/sbin/fai-setup -v". It should provide you with a functional install of FAI. Good luck! =====Cut===== #!/bin/bash # Licensed under GNU GPL version 2.0 or above # Install fai-server script for Debian Squeeze tftpDir=/srv/tftp
cp_pxe_env(){ tftpDir=/srv/tftp [ ! -d ${tftpDir}/pxelinux.cfg ] && \ cd ${tftpDir} && mkdir ${tftpDir}/pxelinux.cfg && ln -s ./fai/pxelinux.0 . } create_boot_txt(){ [ ! -f ${tftpDir}/pxelinux.cfg/boot.txt ] && \ cd ${tftpDir}/pxelinux.cfg && \ cat > boot.txt <<EOF ## Created by root on `date +"%m/%d/%Y:%H:%M"` # File=${tftpDir}/pxelinux.cfg/boot.txt *** Boot Menu (`hostname`) *** fai sysinfo EOF } create_default(){ pxe_version=2.6.32-5-486 [ ! -f ${tftpDir}/pxelinux.cfg/default ] && \ cd ${tftpDir}/pxelinux.cfg && \ cat > default <<EOF ## Created by root on `date +"%m/%d/%Y:%H:%M"` # File=${tftpDir}/pxelinux.cfg/default DISPLAY pxelinux.cfg/boot.txt DEFAULT sysinfo PROMPT 1 TIMEOUT 0 label fai kernel fai/vmlinuz-${pxe_version} append initrd=fai/initrd.img-2.6.32-5-486 ip=dhcp root=/dev/nfs nfsroot=/srv/fai/nfsroot vga=0x31a boot=live FAI_FLAGS=verbose,sshd,createvt FAI_ACTION=install hostname=tst1 domain=local.ca label sysinfo kernel fai/vmlinuz-${pxe_version} append initrd=fai/initrd.img-2.6.32-5-486 ip=dhcp root=/dev/nfs nfsroot=/srv/fai/nfsroot vga=0x31a boot=live FAI_FLAGS=verbose,sshd,createvt FAI_ACTION=sysinfo EOF } install_fai(){ aptitude -y install fai-server fai-doc aptitude -y install mlocate && updatedb sed -i 's/default pw is: fai$/default pw is: fai -> password/' /etc/fai/make-fai-nfsroot.conf sed -i 's/^FAI_ROOTPW=/#FAI_ROOTPW=/' /etc/fai/make-fai-nfsroot.conf sed -i '/^#FAI_ROOTPW=/ a\FAI_ROOTPW='\'\$1\$3Xjc11\$dFOfK6h.hJ9FXwT5owjX61\'' ' /etc/fai/make-fai-nfsroot.conf /usr/sbin/fai-setup -v cp_pxe_env create_boot_txt && create_default ! grep -q ^/srv/fai/config /etc/exports && \ sed -i 's|^/srv/fai/nfsroot\(.*\)$|&\ /srv/fai/config\1|' /etc/exports [ ! -d /srv/fai/config ] && mkdir -p /srv/fai/config && \ cp -a /usr/share/doc/fai-doc/examples/simple/* /srv/fai/config /etc/init.d/nfs-kernel-server restart /etc/init.d/tftpd-hpa restart } #Function calls install_fai ====End-Cut=====