diff options
Diffstat (limited to 'meta/lib/oe')
-rw-r--r-- | meta/lib/oe/rootfs.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 3f27164536..8cd48f9450 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -194,6 +194,18 @@ class Rootfs(object, metaclass=ABCMeta): | |||
194 | post_process_cmds = self.d.getVar("ROOTFS_POSTPROCESS_COMMAND") | 194 | post_process_cmds = self.d.getVar("ROOTFS_POSTPROCESS_COMMAND") |
195 | rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND') | 195 | rootfs_post_install_cmds = self.d.getVar('ROOTFS_POSTINSTALL_COMMAND') |
196 | 196 | ||
197 | def make_last(command, commands): | ||
198 | commands = commands.split() | ||
199 | if command in commands: | ||
200 | commands.remove(command) | ||
201 | commands.append(command) | ||
202 | return "".join(commands) | ||
203 | |||
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 | ||
206 | make_last("tidy_shadowutils_files", post_process_cmds) | ||
207 | make_last("rootfs_reproducible", post_process_cmds) | ||
208 | |||
197 | execute_pre_post_process(self.d, pre_process_cmds) | 209 | execute_pre_post_process(self.d, pre_process_cmds) |
198 | 210 | ||
199 | if self.progress_reporter: | 211 | if self.progress_reporter: |