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-2MRP66dbONLGHmacwJjFNTuQ-CfyQLAF0-q=WY+BKmg@mail.gmail.com>
On Fri, 5 Jul 2024 at 15:58, Gassner, Tobias.ext via
lists.yoctoproject.org
<[email protected]> wrote:
> I looked into overlayfs.py but I'm not convinced that this is the right path. First of all, basically all relevant tests that could be used as a starting point use systemd as well which doesn't make them more generic compared to my test in runtime_test.py. Secondly, when I set IMAGE_FEATURES += "read-only-rootfs" in the test_correct_image_fstab test case, qemu also hangs during boot.

...

> /mnt/overlay is the mount point that is configured by the test. When I make the rootfs read only, the mount point can not be created and I get the error message. For a test, I changed the mount point to /tmp (which is writable even for a read-only rootfs), with that change, the system boots and the test passes.

I think these are the tests in the wrong class (OverlayFSTests). I was
referring to class OverlayFSEtcRunTimeTests and the tests in it (those
are specifically setting up /etc as the overlay and the rest of the
image as read only).

Wherever the test ends up, it needs to work in a way that allows
deleting the postinst.

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.