Hi,

my image build fails with:
ERROR: ims-image-fieldgate-1.0-r0 do_rootfs: The following packages could not 
be configured offline and rootfs is read-only: ['apparmor']

The image build succeeds if i remove the task pkg_postinst_ontarget_${PN} from 
apparmor_2.13.3.bb<https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapparmor_2.13.3.bb%2F&data=01%7C01%7Chu.schlieben%40codewrights.de%7Cfe392d24b5284c78ae0a08d8219e19d7%7C0974af9b352b437cb606e9f242c0c227%7C0&sdata=GjjlvmP6ni3iVbHIo8xGcUmI2j3MabDipZTbZ3siwB4%3D&reserved=0>.
I tried to use deltask in my apparmor_2.13.3.bbappend with different settings:
deltask postinst_ontarget
deltask postinst
deltask pkg_postinst
deltask pkg_postinst_ontarget_
deltask pkg_postinst_ontarget_apparmor
deltask pkg_postinst_ontarget_apparmor_2

and

postinst_ontarget[noexec] = "1"
postinst[noexec] = "1"
pkg_postinst[noexec] = "1"
pkg_postinst_ontarget_[noexec] = "1"
pkg_postinst_ontarget_apparmor[noexec] = "1"
pkg_postinst_ontarget_apparmor_2[noexec] = "1"

but to no avail - I always get the rootfs error.

I know how to patch source files. But it seems there is no way to patch a 
recipe.
My workaround would be to make a copy of the apparmor recipe without the 
postinst part.

Is there a better or another way to do this?

Best regards

hu


Von: Alexander Kanavin <[email protected]>
Gesendet: Monday, 6 July 2020 13:17
An: Hans-Ulrich Schlieben <[email protected]>
Cc: [email protected]
Betreff: Re: [yocto] #yocto howto use deltask

You need to look into what the postinst_ontarget actually does, and why can it 
only happen on target. Or do not use a readonly rootfs.

Alex

On Mon, 6 Jul 2020 at 13:00, Hans-Ulrich Schlieben 
<[email protected]<mailto:[email protected]>> wrote:
Hi,

my image build fails with:
ERROR: ims-image-fieldgate-1.0-r0 do_rootfs: The following packages could not 
be configured offline and rootfs is read-only: ['apparmor']

The image build succeeds if i remove the task pkg_postinst_ontarget_${PN} from 
apparmor_2.13.3.bb<https://eur04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapparmor_2.13.3.bb%2F&data=01%7C01%7Chu.schlieben%40codewrights.de%7Cfe392d24b5284c78ae0a08d8219e19d7%7C0974af9b352b437cb606e9f242c0c227%7C0&sdata=GjjlvmP6ni3iVbHIo8xGcUmI2j3MabDipZTbZ3siwB4%3D&reserved=0>.
I tried to use deltask in my apparmor_2.13.3.bbappend with different settings:
deltask postinst_ontarget
deltask postinst
deltask pkg_postinst
deltask pkg_postinst_ontarget_
deltask pkg_postinst_ontarget_apparmor
deltask pkg_postinst_ontarget_apparmor_2

and

postinst_ontarget[noexec] = "1"
postinst[noexec] = "1"
pkg_postinst[noexec] = "1"
pkg_postinst_ontarget_[noexec] = "1"
pkg_postinst_ontarget_apparmor[noexec] = "1"
pkg_postinst_ontarget_apparmor_2[noexec] = "1"

but to no avail - I always get the rootfs error.

I know how to patch source files. But it seems there is no way to patch a 
recipe.
My workaround would be to make a copy of the apparmor recipe without the 
postinst part.

Is there a better or another way to do this?

Best regards

hu

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#49888): https://lists.yoctoproject.org/g/yocto/message/49888
Mute This Topic: https://lists.yoctoproject.org/mt/75330339/21656
Mute #yocto: https://lists.yoctoproject.org/g/yocto+yocto/mutehashtag/yocto
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to