[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    Re: [OE-core] [PATCH 0/2] RFC???
From:       "Alexander Kanavin" <alex.kanavin () gmail ! com>
Date:       2021-05-31 19:20:03
Message-ID: CANNYZj-X3rLL4d-7ufJUtDPKf=s+494Kcmz_Px-ihzi2dViLkg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


If you attach log.do_rootfs, that would help. It is supposed to contain
full information about the failure, and I would not want to start
special-casing those.

Alex

On Mon, 31 May 2021 at 21:12, Armin Kuster <akuster808@gmail.com> wrote:

> I ran into an issue with a systemd service that had a depend.
> The post init error message was a bit misleading;
> 
> ERROR: security-build-image-1.0-r0 do_rootfs: Postinstall scriptlets of
> ['clamav-daemon'] have failed. If the intention is to defer them to first
> boot,
> then please place them into pkg_postinst_ontarget_${PN} ().
> Deferring to first boot via 'exit 1' is no longer supported.
> Details of the failure are in
> /home/build/builds/master/tmp/work/qemux86_64-poky-linux/security-build-image/1.0-r0/temp/log.do_rootfs.
>  
> All I found was a python trace back in the logs. I have provided a version
> of an
> error message that I hope is acceptable. The second patch is for RPM
> adapting
> to use the 'error message' to help provide a bit more info.
> 
> The RPM solusion has been tested and before porting this to the other
> package managers, I want to make sure the 'error message' was accepted.
> 
> 
> 
> Armin Kuster (2):
> systemctl: Stop tracebacks use formated error messages
> package_manager/rpm: decode systemctl failures
> 
> meta/lib/oe/package_manager/rpm/__init__.py   |  3 +++
> .../systemd/systemd-systemctl/systemctl       | 24 +++++++++++++++----
> 2 files changed, 22 insertions(+), 5 deletions(-)
> 
> --
> 2.25.1
> 
> 
> 
> 
> 


[Attachment #5 (text/html)]

<div dir="ltr"><div>If you attach log.do_rootfs, that would help. It is supposed to \
contain full information about the failure, and I would not want to start \
special-casing those.</div><div><br></div><div>Alex<br></div></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 31 May 2021 at 21:12, \
Armin Kuster &lt;<a href="mailto:akuster808@gmail.com">akuster808@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px \
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I ran into an issue \
with a systemd service that had a depend.<br> The post init error message was a bit \
misleading;<br> <br>
ERROR: security-build-image-1.0-r0 do_rootfs: Postinstall scriptlets of \
[&#39;clamav-daemon&#39;] have failed. If the intention is to defer them to first \
boot,<br> then please place them into pkg_postinst_ontarget_${PN} ().<br>
Deferring to first boot via &#39;exit 1&#39; is no longer supported.<br>
Details of the failure are in \
/home/build/builds/master/tmp/work/qemux86_64-poky-linux/security-build-image/1.0-r0/temp/log.do_rootfs.<br>
 <br>
All I found was a python trace back in the logs. I have provided a version of an<br>
error message that I hope is acceptable. The second patch is for RPM adapting<br>
to use the &#39;error message&#39; to help provide a bit more info.<br>
<br>
The RPM solusion has been tested and before porting this to the other<br>
package managers, I want to make sure the &#39;error message&#39; was accepted.<br>
<br>
<br>
<br>
Armin Kuster (2):<br>
   systemctl: Stop tracebacks use formated error messages<br>
   package_manager/rpm: decode systemctl failures<br>
<br>
  meta/lib/oe/package_manager/rpm/__init__.py     |   3 +++<br>
  .../systemd/systemd-systemctl/systemctl           | 24 +++++++++++++++----<br>
  2 files changed, 22 insertions(+), 5 deletions(-)<br>
<br>
-- <br>
2.25.1<br>
<br>
<br>
<br>
<br>
</blockquote></div>



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#152484): https://lists.openembedded.org/g/openembedded-core/message/152484
Mute This Topic: https://lists.openembedded.org/mt/83216949/4454766
Group Owner: openembedded-core+owner@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [openembedded-core@marc.info]
-=-=-=-=-=-=-=-=-=-=-=-



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic