user-with-full-skel.bbclass: Do not override existing pkg_postinst_${PN}

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2018-11-05 17:35:55 +01:00
parent 0d99ae45c9
commit 3db9f8838a

View File

@@ -15,7 +15,7 @@
SKEL_INIT_MARKER = "force-skel-full-init"
# user recipe part
pkg_postinst_${PN}() {
pkg_postinst_${PN}_prepend() {
if [ -n "$D" -a -n "${USERNAME}" ]; then
touch $D/home/${USERNAME}/${SKEL_INIT_MARKER}
fi