Re: [poky] execute pkg_postinst_ontarget when read-only-rootfs-delayed-postinsts is set for a read only rootfs
Alexander Kanavin <[email protected]>
| Newsgroups | org.yoctoproject.lists.poky |
|---|---|
| Message-ID | <CANNYZj9c8jhhESsnxiMZZOBT6Or-cpJNT3Xe+rm-2KLg38nOPQ@mail.gmail.com> |
On Wed, 26 Jun 2024 at 10:03, Gassner, Tobias.ext via lists.yoctoproject.org <[email protected]> wrote: > read-only-rootfs-delayed-postinsts: when specified in conjunction with read-only-rootfs, specifies that post-install scripts are still permitted (this assumes that the root filesystem will be made writeable for the first boot; this feature does not do anything to ensure that - it just disables the check for post-install scripts) > > The _uninstall_unneeded method in rootfs.py removes packages with postinstall steps if read-only-rootfs is set. However, as I suggested in my patch, the check should also take into account the read-only-rootfs-delayed-postinsts feature, which allows postinstall code even for read-only rootfs. It's possible this used to work when it was first added, then regressed via lack of tests. Can you check if this can be added/modified in meta/lib/oeqa/selftest/cases/buildoptions.py or meta/lib/oeqa/selftest/cases/overlayfs.py ? Alex