Skip to content

Allow postinst functions to be verbose

Peter Kjellerstedt openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2useradd.bbclass: Make postinst functions verbose if BB_VERBOSE_LOGS is setmeta/classes/useradd.bbclass+5 -60 replies
2/2base-passwd: Make the postinst function verbose if BB_VERBOSE_LOGS is setmeta/recipes-core/base-passwd/base-passwd_3.5.29.bb+2 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] Allow postinst functions to be verbose

This enables tracing of the postinst functions created in base-passwd and useradd.bbclass if BB_VERBOSE_LOGS is enabled. I found this extremely useful during verification of the useradd functionality, especially as there otherwise is absolutely nothing in the logs of why a failure in a postinst function happened.

I also simplified useradd_sysroot_sstate() by only having the code to create the postinst files once.

Feel free to squash these commits with the "base-passwd/useradd:
Various improvements to useradd with RSS" commit if you prefer.

//Peter

The following changes since commit 79ac98550f0aa25940404a9805c12744f7047c76:

base-passwd/useradd: Various improvements to useradd with RSS (2017-04-14 00:03:19 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib pkj/verbose_postinst
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=pkj/verbose_postinst

Peter Kjellerstedt (2):
useradd.bbclass: Make postinst functions verbose if BB_VERBOSE_LOGS is
set
base-passwd: Make the postinst function verbose if BB_VERBOSE_LOGS is
set

 meta/classes/useradd.bbclass                        | 11 +++++------
 meta/recipes-core/base-passwd/base-passwd_3.5.29.bb |  2 ++
 2 files changed, 7 insertions(+), 6 deletions(-)
Signature · 1 line
2.12.0