[elbe-users] File deleted in finetuning error

ew.foe at nassur.net ew.foe at nassur.net
Mon Feb 3 21:24:31 CET 2020


Since there was no reply ...

Hello,

I do have the same problem.

I add an archive to the build, including two scripts:
> /root/f.finetuning.sh
> /root/f.finetuning-devel.sh

These files are called in the finetuning section of the build
>   <finetuning>
>      ...
>      <command>/bin/bash -vx /root/f.finetuning.sh</command>
>      <command>/bin/bash -vx /root/f.finetuning-devel.sh</command>

I would then like to remove these files, since they are not needed any
more
>      <rm>/root/f.finetuning*</rm>

But this results in an error:
         : [ERROR] Archive file /root/f.finetuning.sh deleted in finetuning
         : [ERROR] Archive file /root/f.finetuning-devel.sh deleted in  
finetuning

truncating the file instead of deleting it, does not help (elbe is
being clever):
         : [ERROR] Archive file /root/f.finetuning.sh modified in finetuning
         : [ERROR] Archive file /root/f.finetuning-devel.sh modified  
in finetuning

And the build fails! YESSS! It's finally there, the build fails on
errors in finetuning! Thank you!

However, I'm immediately annoyed about my own errors :-/

So the question remains:
What is the korrekt way to use an external file in <finetuning> and
delete it after use.
- other <rm ...> syntax?

- copy the file into the build from the build environment (not in
   archive.tar.gz)? Then delete after use? And how is it transported
   into the build env?

- one of b2t_cp, t2b_cp, t2p_cp buildenv_cp rm_artifact --- the xml
   reference is a whee bit terse on the exact purpose of these.

- none of the above?

- other???

The documentation
https://elbe-rfs.org/docs/sphinx/article-elbeoverview-en.html states

> It’s also possible to include an archive into the XML file, that is
> unpacked into the target root-filesystem after the finetuning step.

*after* the finetuning step? Are you sure? If so, calling my
finetuning-scripts would result in "file not found", wouldn't it?


Please excuse my ignorance if I'm asking the obvious.


Cheers,
Erich

Quoting Ralf Schlatterbeck <rsc at runtux.com>:

> I'm building an SD-Card image for an Allwinner SOC with debian buster.
> ELBE is 12.2+deb9+build811 (still on debian stretch).
>
> I'm getting the error
> [ERROR] Archive file //u-boot.bin deleted in finetuning
>
> I'm putting u-boot.bin into the target via a .tar.gz and then move it
> one level up (out of /target) via a finetuning rule:
>
> <t2p_mv path="/u-boot.bin">u-boot.bin</t2p_mv>
>
> The u-boot.bin is used for a binary blob inside the boot-part of the
> image, I have
>
> <msdoshd>
> ...
> <binary offset="8" blocksize="1024">u-boot.bin</binary>
>
> So the intent here is that the u-boot.bin is *NOT* in the resulting
> SD-Card filesystem. Making it an error that this file is gone is weird,
> IMO it's a common use-case that files in an archive are used during
> finetuning and later deleted? Note that this did *not* work in previous
> versions of Elbe (the archive was unpacked twice I think) and now works
> but produces an error??
>
> How can I avoid this error?
> It looks like it is leading to Elbe failing. I have some more errors
> where some source package is not found, but I think the error above also
> leads to elbe failing?, example of a source pkg that is not found,
> probably an inconsistency of the mirror used.
> [ERROR] No sources for package 'libjavascriptcoregtk-4.0-18-2.26.2-1~deb10+1'
>
> Otherwise I have no indication why elbe thinks the build failed, are
> messages denoted [ERROR] making the build fail??
>
> Ralf
> --
> Dr. Ralf Schlatterbeck                  Tel:   +43/2243/26465-16
> Open Source Consulting                  www:   http://www.runtux.com
> Reichergasse 131, A-3411 Weidling       email: office at runtux.com
>
> _______________________________________________
> elbe-users mailing list
> elbe-users at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-users






More information about the elbe-users mailing list