diff options
Diffstat (limited to 'meta/lib/oe/rootfs.py')
-rw-r--r-- | meta/lib/oe/rootfs.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index 249c685dcf..5f81023040 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
@@ -250,13 +250,11 @@ class Rootfs(object, metaclass=ABCMeta): | |||
250 | 250 | ||
251 | 251 | ||
252 | def _uninstall_unneeded(self): | 252 | def _uninstall_unneeded(self): |
253 | # Remove unneeded init script symlinks | 253 | # Remove the run-postinsts package if no delayed postinsts are found |
254 | delayed_postinsts = self._get_delayed_postinsts() | 254 | delayed_postinsts = self._get_delayed_postinsts() |
255 | if delayed_postinsts is None: | 255 | if delayed_postinsts is None: |
256 | if os.path.exists(self.d.expand("${IMAGE_ROOTFS}${sysconfdir}/init.d/run-postinsts")): | 256 | if os.path.exists(self.d.expand("${IMAGE_ROOTFS}${sysconfdir}/init.d/run-postinsts")) or os.path.exists(self.d.expand("${IMAGE_ROOTFS}${systemd_unitdir}/system/run-postinsts.service")): |
257 | self._exec_shell_cmd(["update-rc.d", "-f", "-r", | 257 | self.pm.remove(["run-postinsts"]) |
258 | self.d.getVar('IMAGE_ROOTFS'), | ||
259 | "run-postinsts", "remove"]) | ||
260 | 258 | ||
261 | image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", | 259 | image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", |
262 | True, False, self.d) | 260 | True, False, self.d) |