From 99745a4ddba99c43eeaaaebfd37f91b492e90cf1 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 27 Apr 2018 16:56:12 +0100 Subject: rootfs: only use dnf to cleanup if package management is enabled If package management has been disabled then we've already removed all the state, and running 'dnf clean all' again will simply recreate a lot of the files. (From OE-Core rev: 4524068ad2248b37fb08a24828d018e2f7e6a761) (From OE-Core rev: f23332dc6a0c5b49246b4d17ec4e6fcad0cb7d47) Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/lib/oe/rootfs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta') diff --git a/meta/lib/oe/rootfs.py b/meta/lib/oe/rootfs.py index f8f717c050..c51e76ddfc 100644 --- a/meta/lib/oe/rootfs.py +++ b/meta/lib/oe/rootfs.py @@ -472,7 +472,8 @@ class RpmRootfs(Rootfs): self._log_check_error() def _cleanup(self): - self.pm._invoke_dnf(["clean", "all"]) + if bb.utils.contains("IMAGE_FEATURES", "package-management", True, False, self.d): + self.pm._invoke_dnf(["clean", "all"]) class DpkgOpkgRootfs(Rootfs): -- cgit v1.2.3-54-g00ecf