softupdate needs -N
Emil Gorter
emil at ripe.net
Wed Aug 15 15:19:33 CEST 2007
Hi Per,
On Wed, 15 Aug 2007 11:12:25 +0200 (CEST),
Per Foreby <perf at ddg.lth.se> wrote:
...
> Try to read classes from /var/log/fai/FAI_CLASSES. Failed. Aborting.
I had the same in 3.1 on Ubuntu Edgy. Solved it by just copying it
over in a hook. Not pretty but it works for me:
if [ -r $target/var/lib/fai/FAI_CLASSES ]
then
mkdir -p $target/var/log/fai/
cp $target/var/lib/fai/FAI_CLASSES $target/var/log/fai/FAI_CLASSES
elif [ -r /var/log/fai/current/FAI_CLASSES ]
then
mkdir -p $target/var/log/fai/
cp /var/log/fai/current/FAI_CLASSES $target/var/log/fai/FAI_CLASSES
else
echo "No FAI_CLASSES file found.."
fi
And I'm seeing some other little problems with the softupdate:
Configuration space x1.ripe.net://srv/fai/config mounted to /var/lib/fai/config
[...]
Calling task_savelog
umount: //fai: not found
End of /usr/sbin/fai
I need to do "umount /var/lib/fai/config" after the softupdate.
And the logs get saved to /var/log/fai/$HOSTNAME without the domain,
while install logs get saved to /var/log/fai/$FQDN. It would be nice
to have them in the same place.
My config:
$ egrep -v "^(#|$)" /etc/fai/fai.conf
monserver=x1.ripe.net
SERVER=x1.ripe.net
FAI_LOGPROTO=ssh
FAI_CONFIGDIR=/srv/fai/config
FAI_CONFIG_SRC=nfs://$SERVER/$FAI_CONFIGDIR
MNTPOINT=/media/mirror
FAI=/var/lib/fai/config
E m i l .
More information about the linux-fai
mailing list