From: Alexander Kanavin Date: Mon, 29 Jan 2018 12:01:30 +0000 (+0200) Subject: meta/lib/oe/rootfs.py: do not execute defer_to_first_boot when processing postinst_in... X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~18918 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=939f7f1a06cd2db05aeb5e75a66322314e10aa6d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git meta/lib/oe/rootfs.py: do not execute defer_to_first_boot when processing postinst_intercept hooks That hook is empty, and doesn't need to be executed; it merely indicates that packages that have used it are requesting to defer their postinst scripts to first boot unconditionally. Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index d3ec8a56c48..8bf77aea492 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -324,6 +324,10 @@ class Rootfs(object, metaclass=ABCMeta): if script == "postinst_intercept" or not os.access(script_full, os.X_OK): continue + if script == "delay_to_first_boot": + self._postpone_to_first_boot(script_full) + continue + bb.note("> Executing %s intercept ..." % script) try: