Hi,
On Mon, Jul 06, 2020 at 04:00:11AM -0700, Hans-Ulrich Schlieben 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.
>
> 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"
>
What about:
pkg_postinst_ontarget_${PN}() {
:
}
in your bbappend? This should effectively override the task from a
bbappend (except if there are _append for the task).
Can't comment on this being a good solution to your problem but that
should work to remove the content of pkg_postinst_ontarget.
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#49885): https://lists.yoctoproject.org/g/yocto/message/49885
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]]
-=-=-=-=-=-=-=-=-=-=-=-