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

Jens Rosenboom jens.rosenboom at freenet.ag
Thu Oct 30 15:42:36 CET 2008


On Thu, Oct 30, 2008 at 03:18:56PM +0100, Jens Rosenboom wrote:
[...]
> 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
[...]

Seems this was triggered by missing connectivity to the debian
mirror, still the script should maybe try to handle this more
gracefully, i.e. abort somehow instead of continuing. 

With connectivity restored it almost works, except for a small 
manual intervention needed:

...
Upgrading /srv/fai/nfsroot/live/filesystem.dir
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:

Configuration file `/etc/live.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** live.conf (Y/I/N/O/D/Z) [default=N] ? d

Configuration file `/etc/live.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : background this process to examine the situation
 The default action is to keep your current version.
*** live.conf (Y/I/N/O/D/Z) [default=N] ? y
ls: cannot access /boot/vmlinu*: No such file or directory
install_packages: reading config files from directory /etc/fai
...

Back to testing the setup-storage now ... ;-)
-------------- 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/2d11ef88/attachment.bin 


More information about the linux-fai mailing list