Why isn’t this seen in the tests? Can you add a test that shows the issue please? (Fails without the patch, passes with)
Alex On Mon 22. Mar 2021 at 10.07, Awais Belal <awais_be...@mentor.com> wrote: > The service is unnecessarily run even when it is unneeded. > This was handled correctly for sysV systems however the > service still runs on the systemd systems as it is not > disabled/masked when not needed. > > Signed-off-by: Awais Belal <awais_be...@mentor.com> > --- > meta/lib/oe/rootfs.py | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py > index 249c685dcf..a29d1f6742 100644 > --- a/meta/lib/oe/rootfs.py > +++ b/meta/lib/oe/rootfs.py > @@ -257,6 +257,10 @@ class Rootfs(object, metaclass=ABCMeta): > self._exec_shell_cmd(["update-rc.d", "-f", "-r", > self.d.getVar('IMAGE_ROOTFS'), > "run-postinsts", "remove"]) > + if > os.path.exists(self.d.expand("${IMAGE_ROOTFS}${systemd_unitdir}/system/run-postinsts.service")): > + self._exec_shell_cmd(["systemctl", > + "--root", > self.d.getVar('IMAGE_ROOTFS'), > + "mask", "run-postinsts"]) > > image_rorfs = bb.utils.contains("IMAGE_FEATURES", > "read-only-rootfs", > True, False, self.d) > -- > 2.17.1 > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#149769): https://lists.openembedded.org/g/openembedded-core/message/149769 Mute This Topic: https://lists.openembedded.org/mt/81518683/21656 Group Owner: openembedded-core+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-