summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalph Siemsen <ralph.siemsen@linaro.org>2024-11-13 16:23:03 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-19 11:38:16 +0000
commit21eab81f9505ea028ccd6cfb4c78567c35a7e1dc (patch)
treeae8835114c6b800886076a18d83eb81f149c772e
parent79a0585f1bc5d1dc232315d11ad8b62054e12008 (diff)
downloadpoky-21eab81f9505ea028ccd6cfb4c78567c35a7e1dc.tar.gz
rootfs-postcommands: Actually do the re-ordering
Previous commit added logic to move certain tasks to the end, but these had no effect, because the result of the make_last() function was not used to update the post_process_cmds variable. Also, once this is fixed, it becomes evident that the commands need to be joined using whitespace, otherwise they all run together, and cannot be executed as individual commands anymore. Fixes: 0ffff2c1f8 ("rootfs-postcommands: Try and improve ordering constraints") (From OE-Core rev: 2a4e8f06bac1bff0a167f775f7babab94b32732a) Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oe/rootfs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py
index 5abce4ad7d..90d4974965 100644
--- a/meta/lib/oe/rootfs.py
+++ b/meta/lib/oe/rootfs.py
@@ -199,12 +199,12 @@ class Rootfs(object, metaclass=ABCMeta):
199 if command in commands: 199 if command in commands:
200 commands.remove(command) 200 commands.remove(command)
201 commands.append(command) 201 commands.append(command)
202 return "".join(commands) 202 return " ".join(commands)
203 203
204 # We want this to run as late as possible, in particular after 204 # We want this to run as late as possible, in particular after
205 # systemd_sysusers_create and set_user_group. Using :append is not enough 205 # systemd_sysusers_create and set_user_group. Using :append is not enough
206 make_last("tidy_shadowutils_files", post_process_cmds) 206 post_process_cmds = make_last("tidy_shadowutils_files", post_process_cmds)
207 make_last("rootfs_reproducible", post_process_cmds) 207 post_process_cmds = make_last("rootfs_reproducible", post_process_cmds)
208 208
209 execute_pre_post_process(self.d, pre_process_cmds) 209 execute_pre_post_process(self.d, pre_process_cmds)
210 210