Skip to contentSkip to conversation

rootfs-postcommands.bbclass: move host-user-contaminated.txt to ${S}

PATCH New [email protected] 1 participant 1 message Jul 15, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rootfs-postcommands.bbclass: move host-user-contaminated.txt to ${S}

From: Ming Liu <[email protected]>

This is to ensure host-user-contaminated.txt would be removed before do_rootfs runs, since ${S} is in cleandirs of do_rootfs, otherwise, a host-user-contaminated.txt file that generated from previous builds could be used which is wrong.

---
 meta/classes/rootfs-postcommands.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/rootfs-postcommands.bbclass +1 -1
index 452b87f9b3..a8a952f31d 100644
@@ -305,7 +305,7 @@ rootfs_trim_schemas () {
 }
 
 rootfs_check_host_user_contaminated () {
-	contaminated="${WORKDIR}/host-user-contaminated.txt"
+	contaminated="${S}/host-user-contaminated.txt"
 	HOST_USER_UID="$(PSEUDO_UNLOAD=1 id -u)"
 	HOST_USER_GID="$(PSEUDO_UNLOAD=1 id -g)"
 
Signature · 1 line
2.25.1