Cannot build nfsroot [was: Re: setup-storage: disklabel doesn't work]

Jens Rosenboom jens.rosenboom at freenet.ag
Thu Oct 30 15:18:56 CET 2008


On Thu, Oct 30, 2008 at 01:04:37PM +0100, Michael Tautschnig wrote:
> > If I try to setup a machine with a disk that does not yet
> > have a disklabel, setup-storage fails because it tries to
> > read the partition information before doing anything else:
> > 
> 
> [...]
> 
> Which FAI version are you using? This problem has been fixed in 3.2.13, I think.

I had installed 3.2.14+experimental, but it seems that I did not
rebuild the nfsroot, so it was using the old version still, which
was probably something like 3.2.9.

But now I've got the next problem: Building the nfsroot with the
current version fails miserably:

> fai-setup
Account $LOGUSER=fai already exists.
Make sure that all install clients can
log into this account without a password.
/home/fai/.ssh/known_hosts remained unchanged.
/home/fai/.ssh/authorized_keys created.
User account fai set up.
Creating FAI nfsroot in /srv/fai/nfsroot/live/filesystem.dir.
By default it needs more than 390 MBytes disk space.
This may take a long time.
/srv/fai/nfsroot/live/filesystem.dir already exists. Removing /srv/fai/nfsroot/live/filesystem.dir
Creating base system using debootstrap version 1.0.10
Calling debootstrap lenny /srv/fai/nfsroot/live/filesystem.dir http://ftp.freenet.de/debian
chroot: cannot run command `apt-get': No such file or directory
Creating base.tgz
/usr/sbin/make-fai-nfsroot: line 264: /srv/fai/nfsroot/live/filesystem.dir/var/tmp/base.tgz: No such file or directory
chroot: cannot run command `dpkg': No such file or directory
/usr/sbin/make-fai-nfsroot: line 278: var/tmp/base-pkgs.lis: No such file or directory
/usr/sbin/make-fai-nfsroot: line 289: etc/fstab: No such file or directory
/usr/sbin/make-fai-nfsroot: line 290: etc/raidtab: No such file or directory
/usr/sbin/make-fai-nfsroot: line 291: etc/default/ntp-servers: No such file or directory
/usr/sbin/make-fai-nfsroot: line 301: /srv/fai/nfsroot/live/filesystem.dir/etc/apt/apt.conf.d/10fai: No such file or directory
Upgrading /srv/fai/nfsroot/live/filesystem.dir
mount: mount point /srv/fai/nfsroot/live/filesystem.dir/proc does not exist
mount: mount point /srv/fai/nfsroot/live/filesystem.dir/dev/pts does not exist
chroot: cannot run command `apt-get': No such file or directory
chroot: cannot run command `aptitude': No such file or directory
chroot: cannot run command `apt-get': No such file or directory
chroot: cannot run command `dpkg-divert': No such file or directory
ln: creating symbolic link `/srv/fai/nfsroot/live/filesystem.dir/usr/sbin/update-initramfs': No such file or directory
chroot: cannot run command `dpkg-divert': No such file or directory
chroot: cannot run command `dpkg-divert': No such file or directory
cp: accessing `/srv/fai/nfsroot/live/filesystem.dir/sbin/start-stop-daemon': Not a directory
chroot: cannot run command `apt-get': No such file or directory
chroot: cannot run command `dpkg': No such file or directory
/usr/sbin/make-fai-nfsroot: line 379: /srv/fai/nfsroot/live/filesystem.dir/var/tmp/packages.nfsroot: No such file or directory
Adding additional packages to /srv/fai/nfsroot/live/filesystem.dir:
cat: /srv/fai/nfsroot/live/filesystem.dir/var/tmp/packages.nfsroot: No such file or directory
install_packages: reading config files from directory /etc/fai
chroot: cannot run command `apt-get': No such file or directory
ERROR: 32512 32512
ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code 127
chroot: cannot run command `aptitude': No such file or directory
ERROR: 32512 32512
ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir aptitude -R -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" install nfs-common fai-nfsroot module-init-tools dhcp3-client ssh rdate lshw portmap bootpc rsync lftp less dump reiserfsprogs e2fsprogs usbutils hwinfo psmisc pciutils hdparm smartmontools parted mdadm lvm2 dnsutils ntpdate dosfstools cvs jove xfsprogs xfsdump procinfo dialog discover mdetect console-tools console-common expect iproute udev subversion liblinux-lvm-perl cfengine2 libapt-pkg-perl return code 127
chroot: cannot run command `apt-get': No such file or directory
ERROR: 32512 32512
ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code 127
chroot: cannot run command `dpkg': No such file or directory
ERROR: 32512 32512
ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir dpkg --configure --pending return code 127
chroot: cannot run command `dpkg': No such file or directory
ERROR: 32512 32512
ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir dpkg -C return code 127
chroot: cannot run command `apt-get': No such file or directory
ERROR: 32512 32512
ERROR: chroot /srv/fai/nfsroot/live/filesystem.dir apt-get clean return code 127
6 errors during executing of commands
install_packages exit code: 3
chroot: cannot run command `chpasswd': No such file or directory
cp: target `/srv/fai/nfsroot/live/filesystem.dir/etc/fai' is not a directory
/usr/sbin/make-fai-nfsroot: line 228: /srv/fai/nfsroot/live/filesystem.dir/etc/fai/fai.conf: No such file or directory
chroot: cannot run command `shadowconfig': No such file or directory
rm: cannot remove `etc/mtab': No such file or directory
ln: creating symbolic link `etc/init.d/rcS': No such file or directory
/usr/sbin/make-fai-nfsroot: line 332: etc/network/interfaces: No such file or directory
/usr/sbin/make-fai-nfsroot: line 334: root/.profile: No such file or directory
rm: cannot remove `/srv/fai/nfsroot/live/filesystem.dir/usr/sbin/update-initramfs': No such file or directory
chroot: cannot run command `dpkg-divert': No such file or directory
chroot: cannot run command `update-initramfs': No such file or directory
Log file written to /var/log/fai/make-fai-nfsroot.log
Re-exporting directories for NFS kernel daemon....
FAI setup finished.
Log file written to /var/log/fai/fai-setup.log

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20081030/24aa0b2c/attachment.bin 


More information about the linux-fai mailing list