summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 4e66535407..fc7d64d7e5 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -460,6 +460,20 @@ rootfs_trim_schemas () {
460 done 460 done
461} 461}
462 462
463rootfs_check_host_user_contaminated () {
464 contaminated="${WORKDIR}/host-user-contaminated.txt"
465 HOST_USER_UID="$(PSEUDO_UNLOAD=1 id -u)"
466 HOST_USER_GID="$(PSEUDO_UNLOAD=1 id -g)"
467
468 find "${IMAGE_ROOTFS}" -wholename "${IMAGE_ROOTFS}/home" -prune \
469 -user "$HOST_USER_UID" -o -group "$HOST_USER_GID" >"$contaminated"
470
471 if [ -s "$contaminated" ]; then
472 echo "WARNING: Paths in the rootfs are owned by the same user or group as the user running bitbake. See the logfile for the specific paths."
473 cat "$contaminated" | sed "s,^, ,"
474 fi
475}
476
463# Make any absolute links in a sysroot relative 477# Make any absolute links in a sysroot relative
464rootfs_sysroot_relativelinks () { 478rootfs_sysroot_relativelinks () {
465 sysroot-relativelinks.py ${SDK_OUTPUT}/${SDKTARGETSYSROOT} 479 sysroot-relativelinks.py ${SDK_OUTPUT}/${SDKTARGETSYSROOT}