Skip to content

postinst fixes for opgk/dpkg

Stefan Agner openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 4 repliesSuperseded

Changes in v2 from the cover letter

- Note that patches are specific for opkg/dpkg

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3opkg: avoid running postinst scripts twice when using systemdmeta/recipes-devtools/opkg/opkg/opkg-configure.service meta/recipes-devtools/opkg/opkg_0.3.6.bb+0 -310 replies
2/3run-postinsts: for dpkg/opkg, do not rely on /etc/*-postinstsmeta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts meta/recipes-devtools/run-postinsts/run-postinsts/run-postinsts.service+12 -100 replies
3/3rootfs.py: for dpkg/opkg, don't install postinsts if package management is presentmeta/lib/oe/rootfs.py+3 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] postinst fixes for opgk/dpkg

From: Stefan Agner <[email protected]>

Hi,

This follows up on the discussion a while ago:
https://www.mail-archive.com/[email protected]/msg104996.html

Patch 1 is rather simple and really fixes the main issue. The patch by itself has been tested with the relevant self test and passes.

Patch 2/3 get rid of /etc/*-postinsts script in cases where the package management is present. This avoids a bunch of unnecessary scripts to be present on the rootfs. It also avoids the systemd service to be present forever with in case no postinst scripts have been deployed:
Condition: start condition failed at Tue 2018-05-15 10:57:43 UTC; 42s ago
└─ ConditionPathExistsGlob=/etc/*-postinsts was not met

Self test executed using:

$ oe-selftest --run-tests runtime_test.Postinst.test_postinst_rootfs_and_boot

Changes since v1:
- Note that patches are specific for opkg/dpkg

Stefan Agner (3):
opkg: avoid running postinst scripts twice when using systemd
run-postinsts: for dpkg/opkg, do not rely on /etc/*-postinsts rootfs.py: for dpkg/opkg, don't install postinsts if package
management is present

 meta/lib/oe/rootfs.py                               |  3 +++
 .../opkg/opkg/opkg-configure.service                | 17 -----------------
 meta/recipes-devtools/opkg/opkg_0.3.6.bb            | 14 --------------
 .../run-postinsts/run-postinsts/run-postinsts       | 21 ++++++++++++---------
 .../run-postinsts/run-postinsts.service             |  1 -
 5 files changed, 15 insertions(+), 41 deletions(-)
 delete mode 100644 meta/recipes-devtools/opkg/opkg/opkg-configure.service
Signature · 1 line
2.13.6