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 <CANNYZj-g32zPpD_eQHgpfgQnpV-6HnPUeD-9OHH4j=n9afdMhg@mail.gmail.com>
On Thu, 4 Jul 2024 at 15:34, Gassner, Tobias.ext via
lists.yoctoproject.org
<[email protected]> wrote:
> Why systemd? Is it needed for something? Note that any deviation fromdefault config risks adding full builds without sstate to the test,preventing sstate reuse.
>
> As far as I understand the postinst_ontarget mechanism, a script is deployed to the target, which is executed on the first boot by init and deleted afterwards. since I configured a read-only rootfs, the script cannot be deleted. if I don't set systemd as init manager, qemu hangs on boot but only for the rpm package class. I have the assumption that this is related to the fact that the postinst_ontarget script cannot be deleted. With systemd as init manager qemu boots normally for all package classes and the test passes.
>

I'm afraid you have to look into the hang. Setting 'systemd' is a
workaround that covers up some kind of issue.

I also wonder how the feature is supposed to work in the first place,
if postinst mechanism relies on being able to delete the postinst, so
it's executed only once,

Alex
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.