From d29dcdfcdad439b7e66bf7af83eb07fb1d488242 Mon Sep 17 00:00:00 2001 From: Paul Barker Date: Wed, 24 Sep 2014 13:03:33 +0200 Subject: opkg: Pass '--volatile-cache' when building rootfs The '--volatile-cache' argument is passed to opkg when building the root filesystem to ensure that the cache of downloaded packages is cleared out when opkg finishes installing packages. Without this option, stale packages and links may be left in the cache, increasing the size of the generated filesystem. Signed-off-by: Paul Barker --- meta/lib/oe/package_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 96fae57872..2eda48483e 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -1189,7 +1189,7 @@ class OpkgPM(PackageManager): self.deploy_dir = self.d.getVar("DEPLOY_DIR_IPK", True) self.deploy_lock_file = os.path.join(self.deploy_dir, "deploy.lock") self.opkg_cmd = bb.utils.which(os.getenv('PATH'), "opkg") - self.opkg_args = "-f %s -o %s " % (self.config_file, target_rootfs) + self.opkg_args = "-f %s -o %s --volatile-cache " % (self.config_file, target_rootfs) self.opkg_args += self.d.getVar("OPKG_ARGS", True) opkg_lib_dir = self.d.getVar('OPKGLIBDIR', True) -- cgit 1.2.3-korg