Package: fai-server
Version: 3.2.5
Severity: critical

fai-cd does not work due to a programming error: in Line 259,
${cfdir:=/etc/fai}
Here the shell evaluate cfdir to /etc/fai an try to run it as command.

Instead, I suppose to do the following
- assign the parameter expansion to cfdir itselfs like this:

        cfdir=${cfdir:=/etc/fai}

After changing that, fai-cd does it's job but reports an error if you provide empty mirrordir


# fai-cd -f -m /srv/fai/mirror/ /srv/fai/isos/fai-bootcd.iso
Bind mounting all required parts
NFSROOT /srv/fai/nfsroot/live/filesystem.dir mounted
Config space /srv/fai/config mounted
Mirror /srv/fai/mirror/ mounted
dirname: missing operand
Try `dirname --help' for more information.

Here i would recomment the following
- check whether the $mirrordir is empty or not
- check whether the $mirrordir has the right format
- after that checks you can run the line 180-181

br,
Chris



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to