When I run make-fai-nfsroot on my build server, it seems to grab most of the important files from that server's file system rather than putting the things in that fai needs to work. As a result when I boot an install client, it comes up with a broken setup, thinking it is the install server (the hostname and such are the same as the install server).
I can easily tell it didn't work right because the /usr/share/lib/nfsroot/etc/init.d/rcS is from the build server, rather than being the one to run fai. I'm running debian stable, fai 2.4.1. I'm not sure if I've hosed my setup, or if there's a problem in my configuration. I've browsed through the script itself, but I'm not finding it easy to puzzle out what's happening. Can someone tell me how it's supposed to build the /etc directories, etc.? Maybe I have an error in my config file I can't see. I've put my config file and the output of make-fai-nfsroot -v below. Here's my fai.conf: installserver=charon httpserver=$installserver ftpserver=ftp.uk.debian.org debdist=stable # distribution: woody, sarge, sid FAI_DEBOOTSTRAP="$debdist http://ftp.uk.debian.org/debian" FAI_DEBOOTSTRAP_OPTS="--arch i386 --exclude=pcmcia-cs,ppp,pppconfig,pppoe,pppoeconf,dhcp-client" NFSROOT_PACKAGES="expect" FAI_ROOTPW="[rootpwhash]" KERNELPACKAGE=/usr/lib/fai/kernel/kernel-image-2.4.20_fai1_i386.deb SERVERINTERFACE=eth0 LOGUSER=fai FAI_REMOTESH=ssh FAI_REMOTECP=scp FAI_CONFIGDIR=/usr/local/share/fai FAI_LOCATION=$installserver:$FAI_CONFIGDIR FAI_BOOT="dhcp" NFSROOT=/usr/lib/fai/nfsroot FAI=/fai OS_TYPE=`uname -s | tr /A-Z/ /a-z/` Here's a clip from the output of make-fai-nfsroot -v: Creating FAI nfsroot can take a long time and will need more than 160MB disk space in /usr/lib/fai/nfsroot. /usr/lib/fai/nfsroot already exists. Removing /usr/lib/fai/nfsroot Creating nfsroot for stable using debootstrap Calling debootstrap stable /usr/lib/fai/nfsroot http://ftp.uk.debian.org/debian I: Retrieving http://ftp.uk.debian.org/debian/dists/stable/Release I: Validating /usr/lib/fai/nfsroot/var/lib/apt/lists/debootstrap.invalid_dists_stable_Release I: Retrieving http://ftp.uk.debian.org/debian/dists/stable/main/binary-i386/Packages.gz [ ... goes on like this ... ] I: Extracting /var/cache/apt/archives/mbr_1.1.5-1_i386.deb... I: Installing core packages... Selecting previously deselected package base-files. (Reading database ... 0 files and directories currently installed.) Unpacking base-files (from .../base-files_3.0.2_i386.deb) ... Selecting previously deselected package base-passwd. Unpacking base-passwd (from .../base-passwd_3.4.1_i386.deb) ... dpkg: base-passwd: dependency problems, but configuring anyway as you request: base-passwd depends on libc6 (>= 2.2.4-4); however: Package libc6 is not installed. Setting up base-passwd (3.4.1) ... dpkg: base-files: dependency problems, but configuring anyway as you request: base-files depends on awk; however: Package awk is not installed. Setting up base-files (3.0.2) ... [ ... goes on like this ... ] . Starting system log daemon: syslogd Warning: Fake start-stop-daemon called, doing nothing . I: Base system installed successfully. Creating base.tgz Upgrading /usr/lib/fai/nfsroot Get:1 http://ftp.uk.debian.org stable/main Packages [1777kB] [ ... goes on like this ... ] Adding additional packages to /usr/lib/fai/nfsroot: dhcp3-client ssh portmap file rdate cfengine cvs bootpc rsync wget rsh-client less dump reiserfsprogs dpkg-dev ext2resize strace hdparm parted dnsutils grub ntpdate dosfstools sysutils dialog libdetect0 discover mdetect read-edid kudzu hwtools Reading Package Lists... Building Dependency Tree... Package cfengine has no available version, but exists in the database. This typically means that the package was mentioned in a dependency and never uploaded, has been obsoleted or is not available with the contents of sources.list E: Package cfengine has no installation candidate Removing `diversion of /sbin/discover to /sbin/discover.distrib by fai' [ ... end ] Thanks, Kief
