cfagent didn't copy with FAI
Andy Van Maele
andy.vanmaele at intec.ugent.be
Tue May 22 09:43:43 CEST 2007
Hello Thomas & everyone,
> > But now, when performing an installation, for a strange reason cfagent
> > just ignores the copy section. When I stopped the FAI install just
> Mmm. The best would be to come into IRC #fai on oftc and we will try to
> solve the problem online. Did you use cfengine 1 or 2 with sarge?
>
Before, the script was working on cfengine1.7 on FAI 2.7(?) on Sarge.
Now, I'm migrating our scripts to a new server based on cfengine2 and
FAI 3.1.8, which come with Debian Etch.
> Any error/log messages?
>
I've turned on cfagent to be verbose, and during copy nothing actually
happens:
*********************************************************************
Main Tree Sched: copy pass 1 @ Tue May 22 07:14:08 2007
*********************************************************************
*********************************************************************
Main Tree Sched: editfiles pass 1 @ Tue May 22 07:14:08 2007
*********************************************************************
Begin editing /tmp/target/etc/fstab
On the other had, after almost all of the action is done, I have some
"Checking" messages:
Checking for potential rule:: Copy
</var/lib/fai/config/files/click/linux-2.6.19.2-click070516.tar.bz2>
/ any
*********************************************************************
Main Tree Sched: copy pass 2 @ Tue May 22 07:14:16 2007
*********************************************************************
Checking for potential rule:: Copy
</var/lib/fai/config/files/click/linux-2.6.19.2-click070516.tar.bz2>
/ any
*********************************************************************
Main Tree Sched: editfiles pass 2 @ Tue May 22 07:14:16 2007
*********************************************************************
Checking for potential rule:: Copy
</var/lib/fai/config/files/click/linux-2.6.19.2-click070516.tar.bz2>
/ any
which I don't understand.
> > Would anyone have a hint why the manually executed cfagent file does
> > work, and it doesn't when processing it through the FAI install?
> Maybe a class is not defined. Try to put this code into the any::
> section of cfagent.
>
It's already in the any section of cfagent:
copy:
any::
### The files to get click up and running
${files}/click/linux-2.6.19.2-click070516.tar.bz2
dest=${target}/usr/src/linux-2.6.19.2-click070516.tar.bz2
m=644 o=root g=root
${files}/click/click070516.tar.bz2
dest=${target}/usr/src/click070516.tar.bz2
m=644 o=root g=root
${files}/click/click_cvs-070516-1.deb
dest=${target}/usr/src/click_cvs-070516-1.deb
m=644 o=root g=root
is the part that doesn't seem to do what it should.
Regards,
Andy Van Maele
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20070522/63dccdca/attachment.htm
More information about the linux-fai
mailing list