Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread Alexander Kanavin
Actually, that depends on which package format you use. The script that executes the postinsts on target can be found in meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts. Alex On Fri, 27 Mar 2020 at 10:06, wrote: > Hi Alex, > Im not sure if my previous reply got sent/reached

Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread stefan . wenninger
I am using deb as my package class. What I am gathering from that run-postinsts directory is that there is a systemd service that starts and executes the run-postinsts script. That script looks for a directory /etc/deb-postinsts and executes all scripts in there. Does that mean, that the

Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread Alexander Kanavin
You can start by inspecting your image's rootfs, the scripts to run on first boot should be in /etc/ somewhere. Are they? Alex On Fri, 27 Mar 2020 at 09:14, wrote: > Hi, > I am trying to execute a few shell commands the first time a new image > boots. The Yocto built-in mechanism for that

Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread stefan . wenninger
Hi Alex, Im not sure if my previous reply got sent/reached you. I apologise in case you receive this message twice. Should there be a script in /etc created from my pkg_postinst_ontarget_${PN} function? If yes, what would its name be? Stefan -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all

Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread Alexander Kanavin
I am not sure about deb-postinsts. What I see the script doing is: eval dpkg --configure -a $append_log Alex On Fri, 27 Mar 2020 at 10:26, wrote: > I am using deb as my package class. What I am gathering from that > run-postinsts directory is that there is a systemd service that starts and >

[yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread stefan . wenninger
Hi, I am trying to execute a few shell commands the first time a new image boots. The Yocto built-in mechanism for that should be pkg_postinst_ontarget_${PN}. However I can not get the commands I put within that function to execute. I am having a hard time trying to figure out what the problem

Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread Quentin Schulz
Hi Stefan, On Fri, Mar 27, 2020 at 05:26:23AM -0700, stefan.wennin...@evopro-ag.de wrote: > I think the relevant part for me in that script is the func > exec_postinst_scriplets(). It looks to me as if this function iterates > through all scripts in the /etc/deb-postinsts directory in my case

Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread Quentin Schulz
Hi Stefan, On Fri, Mar 27, 2020 at 06:41:57AM -0700, stefan.wennin...@evopro-ag.de wrote: > Hi Quentin, > I have now read up on the exact meaning of PROVIDES and PACKAGES and I do > understand your response. > It does sound like I am talking about PACKAGES since I did suspect PROVIDES > to work

Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread stefan . wenninger
Hi Quentin, I have now read up on the exact meaning of PROVIDES and PACKAGES and I do understand your response. It does sound like I am talking about PACKAGES since I did suspect PROVIDES to work like that. Well at least if PROVIDES would work like that, it would explain why my postinstall did

[yocto] [meta-security][PATCH 2/2] apparmor: update to 2.13.4

2020-03-27 Thread Jan Luebbe
Signed-off-by: Jan Luebbe --- recipes-mac/AppArmor/{apparmor_2.13.3.bb => apparmor_2.13.4.bb} | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename recipes-mac/AppArmor/{apparmor_2.13.3.bb => apparmor_2.13.4.bb} (99%) diff --git a/recipes-mac/AppArmor/apparmor_2.13.3.bb

[yocto] [meta-security][PATCH 1/2] apparmor: fix wrong executable permission on service file

2020-03-27 Thread Jan Luebbe
This avoids "systemd[1]: Configuration file /lib/systemd/system/apparmor.service is marked executable. Please remove executable permission bits. Proceeding anyway." on boot. Signed-off-by: Jan Luebbe --- recipes-mac/AppArmor/apparmor_2.13.3.bb | 2 +- 1 file changed, 1 insertion(+), 1

Re: [yocto] Mechanism behind pkg_postinst_ontarget_${PN} #yocto

2020-03-27 Thread stefan . wenninger
I think the relevant part for me in that script is the func exec_postinst_scriplets(). It looks to me as if this function iterates through all scripts in the /etc/deb-postinsts directory in my case and executes them with "sh". My problem seems to have stemmed from confusion on my part about

Re: [yocto] [opkg-devel] [opkg-utils PATCH] Opkg.py : Support for tilde in version compare

2020-03-27 Thread Alejandro del Castillo
Hi Marteen, thanks for working on this, a couple of comments On 3/19/20 6:26 AM, Maarten wrote: Add support for the special tilde character. The current opkg version allows specifying a version appended with a tilde e.g. 1.2.2~releasecandidate which is lower in version than 1.2.2 itself. With

Re: [yocto] [meta-security][PATCH] openscap-daemon: add missing runtime dependencies

2020-03-27 Thread akuster
On 3/9/20 5:45 AM, Yi Zhao wrote: > Add missing runtime dependencies otherwise /usr/bin/oscapd can not > startup. > > Signed-off-by: Yi Zhao merged. thanks, Armin > --- > .../openscap-daemon/openscap-daemon_0.1.10.bb| 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) >

Re: [yocto] [meta-security][PATCH] layer.conf: update LAYERSERIES_COMPAT for dunfell

2020-03-27 Thread akuster
On 3/25/20 6:01 AM, Martin Jansa wrote: > Signed-off-by: Martin Jansa Merged. thanks, Armin > --- > conf/layer.conf | 2 +- > meta-integrity/conf/layer.conf | 2 +- > meta-security-compliance/conf/layer.conf | 2 +- > meta-security-isafw/conf/layer.conf

Re: [yocto] [meta-security][PATCH 1/6] sssd: Sort PACKAGECONFIG entries

2020-03-27 Thread akuster
On 3/25/20 4:43 AM, Jonatan Pålsson wrote: > Signed-off-by: Jonatan Pålsson series merged. thanks Armin > --- > recipes-security/sssd/sssd_1.16.4.bb | 18 +- > 1 file changed, 9 insertions(+), 9 deletions(-) > > diff --git a/recipes-security/sssd/sssd_1.16.4.bb >

[linux-yocto] [kernel-cache][PATCH] apparmor/apparmor_on_boot: drop config no longer exists in 5.4

2020-03-27 Thread akuster
Signed-off-by: Armin Kuster --- features/apparmor/apparmor_on_boot.cfg | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 features/apparmor/apparmor_on_boot.cfg diff --git a/features/apparmor/apparmor_on_boot.cfg b/features/apparmor/apparmor_on_boot.cfg deleted file mode 100644 index