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.

(From OE-Core rev: 939f7f1a06cd2db05aeb5e75a66322314e10aa6d)

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Alexander Kanavin
2018-01-29 14:01:30 +02:00
committed by Richard Purdie
parent 4c808e31ea
commit 32c500b8ea

View File

@@ -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: