Hi,

On Sun, Oct 01, 2006 at 05:30:03PM +0200, Holger Levsen wrote:
> with an unmodified /etc/fai/fai.conf and a populated /srv/fai/config (on the 
> client), running "fai -N softupdate" results in the error-message "Error: 
> Provide the URL to obtain the fai config storage in $FAI_CONFIG_SRC".
> 
> Despite, from fai.conf:
> 
> # the configuration space on the install server
> FAI_CONFIGDIR=/srv/fai/config
> 
> # how to access the fai config space
> # default if undefined here: nfs://`hostname`/$FAI_CONFIGDIR

Currently, this is the default value while running make-fai-nfsroot
only. In case, we're running from a FAI-CD, the default value is
file://$FAI. All other cases do not provide a default value.

I'm not sure about the best default in those cases, but in case of a
softupdate I don't think that nfs://`hostname`/$FAI_CONFIGDIR would make
a lot of sense as `hostname` would return the hostname of the client.

> Then, fai hangs (and doesn't exit.)

In the current version, the following code is executed:

In lib/get-config-dir:

  if [ -z "$FAI_CONFIG_SRC" ]; then
      sendmon "TASKERROR get_fai_dir 21"
      echo "Error: Provide the URL to obtain the fai config storage in 
\$FAI_CONFIG_SRC"  
      exit 21
  fi

... which is then caught in lib/subroutines-linux:

  get-config-dir || {
      echo "Problems accessing the config space."
      die ""
  }

As FAI_ACTION does not equal "install" in that case, die() should simply
exit. I don't see where fai would hang.

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to