diff options
| -rw-r--r-- | meta/lib/oe/rootfs.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index ad9fd77c8b..4ea5adb9f4 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py | |||
| @@ -302,6 +302,16 @@ class Rootfs(object, metaclass=ABCMeta): | |||
| 302 | self._exec_shell_cmd(['ldconfig', '-r', self.image_rootfs, '-c', | 302 | self._exec_shell_cmd(['ldconfig', '-r', self.image_rootfs, '-c', |
| 303 | 'new', '-v', '-X']) | 303 | 'new', '-v', '-X']) |
| 304 | 304 | ||
| 305 | image_rorfs = bb.utils.contains("IMAGE_FEATURES", "read-only-rootfs", | ||
| 306 | True, False, self.d) | ||
| 307 | ldconfig_in_features = bb.utils.contains("DISTRO_FEATURES", "ldconfig", | ||
| 308 | True, False, self.d) | ||
| 309 | if image_rorfs or not ldconfig_in_features: | ||
| 310 | ldconfig_cache_dir = os.path.join(self.image_rootfs, "var/cache/ldconfig") | ||
| 311 | if os.path.exists(ldconfig_cache_dir): | ||
| 312 | bb.note("Removing ldconfig auxiliary cache...") | ||
| 313 | shutil.rmtree(ldconfig_cache_dir) | ||
| 314 | |||
| 305 | def _check_for_kernel_modules(self, modules_dir): | 315 | def _check_for_kernel_modules(self, modules_dir): |
| 306 | for root, dirs, files in os.walk(modules_dir, topdown=True): | 316 | for root, dirs, files in os.walk(modules_dir, topdown=True): |
| 307 | for name in files: | 317 | for name in files: |
