Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-02-12 Thread Alexander Kanavin
On 02/12/2018 01:40 PM, Diaz de Grenu, Jose wrote: Can you detail how this would be done? Is it possible to append to 'log_check_expected_regex' from the .bb recipe that generates the warning? Or the only option is to patch the poky layer? Is there any way to remove these warnings in rocko wit

Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-02-12 Thread Diaz de Grenu, Jose
> You can set self.log_check_expected_regexes in RpmRootfs class in > meta/lib/oe/rootfs.py, but > > a) depending on how broad your regex is, you might suppress real failures of > the scriptlets; > > b) it would be only your local hack until the issue is resolved properly. > > Alex Can you detai

Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-01-17 Thread Alexander Kanavin
On 01/17/2018 07:10 PM, Diaz de Grenu, Jose wrote: The patches work, but I was wondering if we really need to mark this behavior as a WARNING. From my point of view, this may be confusing for a user, as it could lead to think that something is wrong. But I think that, even if image post proce

Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-01-17 Thread Diaz de Grenu, Jose
-Original Message- From: Alexander Kanavin [mailto:alexander.kana...@linux.intel.com] Sent: Monday, January 8, 2018 1:20 PM On 01/08/2018 01:44 PM, Diaz de Grenu, Jose wrote: > > Thanks for the information. I guess this fix will be for Yocto 2.5? > Maybe; I'm working right now on the pa

Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-01-08 Thread Alexander Kanavin
On 01/08/2018 02:31 PM, Martin Hundebøll wrote: On 2018-01-08 13:19, Alexander Kanavin wrote: The problem is that in Yocto 2.4 then any build which requires on-target postinstallation script is going to trigger warning, even if it is completely correct. Is there no way around this? Is there a

Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-01-08 Thread Martin Hundebøll
On 2018-01-08 13:19, Alexander Kanavin wrote: The problem is that in Yocto 2.4 then any build which requires on-target postinstallation script is going to trigger warning, even if it is completely correct. Is there no way around this? Is there a way to at least hide them? You can set self.log_c

Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-01-08 Thread Alexander Kanavin
On 01/08/2018 01:44 PM, Diaz de Grenu, Jose wrote: Thanks for the information. I guess this fix will be for Yocto 2.5? Maybe; I'm working right now on the patchset, and will post it to oe-core list later today. Last time it was a bit controversial, so I'd appreciate if you a) try and test it;

Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-01-08 Thread Diaz de Grenu, Jose
-Original Message- From: Alexander Kanavin [mailto:alexander.kana...@linux.intel.com] On 01/08/2018 11:14 AM, Diaz de Grenu, Jose wrote: > Nope, 'exit 1' is the currently correct way to defer to first boot. On the > other hand, it's also a correct way to indicate that the script has fai

Re: [yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-01-08 Thread Alexander Kanavin
On 01/08/2018 11:14 AM, Diaz de Grenu, Jose wrote: I am trying to create a recipe with a post installation script. I am using the following fragment of code (as documented in http://www.yoctoproject.org/docs/2.4/mega-manual/mega-manual.html#new-recipe-post-installation-scripts ): pkg_postins

[yocto] Postinstallation script warnings in Yocto 2.4 Rocko

2018-01-08 Thread Diaz de Grenu, Jose
Hi, I posted this question in the poky mailing list, but I realize now that this may be the correct place for it. Sorry for reposting. I am trying to create a recipe with a post installation script. I am using the following fragment of code (as documented in http://www.yoctoproject.org/docs/2.