1
0
mirror of https://git.yoctoproject.org/poky synced 2026-04-20 11:28:58 +00:00

ref-manual: Updated postinstall migration note.

(From yocto-docs rev: fa6582df36d770e7207e4c5201dafe0e64f46a76)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2018-11-09 14:21:05 -08:00
committed by Richard Purdie
parent 506bbde783
commit 40433a0229

View File

@@ -6192,8 +6192,14 @@ id=f4d4f99cfbc2396e49c1613a7d237b9e57f06f81'>commit message</ulink>.
<para>
You must explicitly mark post installs to defer to the target.
Warnings in the previous Yocto Project releases have become
errors.
If you want to explicitly defer a postinstall to first boot on
the target rather than at rootfs creation time, use
<filename>pkg_postinst_ontarget()</filename> or call
<filename>postinst-intercepts defer_to_first_boot</filename> from
<filename>pkg_postinst()</filename>.
Any failure of a <filename>pkg_postinst()</filename> script
(including exit 1) triggers an error during the
<link linkend='ref-tasks-rootfs'><filename>do_rootfs</filename></link> task.
</para>
</section>