rootfs: add option to allow delayed postinsts on read-only rootfs
A message that is not in the archive (sent off-list or not yet received): [email protected]
Ping on the patch
Quoted 51 lines · Anton Kachalov via lists.openembedded.org
Example use case in OpenBMC: rootfs is squashfs and the system has either overlayfs for whole rootfs or for some parts (e.g. /etc).
This option will allow to create migration one-shot postinsts using "pkg_postinst_ontarget_${PN}" routines defined in recipes to fix files under upper workdir in overlayfs.
Signed-off-by Anton D. Kachalov <[email protected]>--- meta/classes/image.bbclass | 2 +- meta/lib/oe/rootfs.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)meta/classes/image.bbclass +0
-1@@ -33,7 +33,7 @@ INHIBIT_DEFAULT_DEPS = "1" # IMAGE_FEATURES may contain any available package group IMAGE_FEATURES ?= "" IMAGE_FEATURES[type] = "list" -IMAGE_FEATURES[validitems] += "debug-tweaks read-only-rootfsstateless-rootfs empty-root-password allow-empty-password allow-root-login post-install-logging"
+IMAGE_FEATURES[validitems] += "debug-tweaks read-only-rootfs read-only-rootfs-delayed-postinsts stateless-rootfs empty-root-password allow-empty-password allow-root-login post-install-logging"# Generate companion debugfs?
IMAGE_GEN_DEBUGFS?= "0"meta/lib/oe/rootfs.py +3
-1@@ -217,6 +217,9 @@ class Rootfs(object, metaclass=ABCMeta): self.progress_reporter.next_stage() if bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", + True, False, self.d) and \ + not bb.utils.contains("IMAGE_FEATURES", + "read-only-rootfs-delayed-postinsts", True, False, self.d): delayed_postinsts = self._get_delayed_postinsts() if delayed_postinsts is not None: --2.30.0.284.gd98b1dd5eaa7-goog
Quoted 1 line · Anton Kachalov via lists.openembedded.org
Ping on the patch
It merged a couple of days ago:
http://git.yoctoproject.org/cgit.cgi/poky/commit/?h=master-next&id=49c4fdcb884057c0fc713925c8040e36fd26af8d
?
Cheers,
Richard
Hi, Richard.
Thanks! I've expected some kind of ack :)
Quoted 15 lines · Richard Purdie
Quoted 1 line · Anton Kachalov via lists.openembedded.org
Ping on the patch
It merged a couple of days ago:
?
Cheers,
Richard
Quoted 1 line · Anton Kachalov
Thanks! I've expected some kind of ack :)
That would add a lot of mailing list noise and work for me when its relatively obvious looking at the git tree! :)
Cheers,
Richard