From 0341bfa886ea851f5a394051545b4e624d8003dd Mon Sep 17 00:00:00 2001 From: Mark Hatle Date: Mon, 12 Aug 2013 19:45:48 -0500 Subject: package_rpm.bbclass: NO_RECOMMENDATIONS support Add NO_RECOMMENDATIONS support. A way to disable all recommended packages from being installed. This will help shrink the size of the resulting filesystem. Add documentation on NO_RECOMMENDATIONS and BAD_RECOMMENDATIONS. Note, using NO_RECOMMENDATIONS has side effects such that kernel-modules may not have been installed. A user will need to manually add to their image any kernel-modules required to be on the image for functionality. Signed-off-by: Mark Hatle Signed-off-by: Saul Wold --- meta/classes/package_rpm.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes/package_rpm.bbclass') diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index cb3ceacbcb..b29d3edb2f 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -359,6 +359,9 @@ EOF smart --data-dir=${target_rootfs}/var/lib/smart config --set rpm-extra-macros._tmppath=/install/tmp package_write_smart_config ${target_rootfs} # Do the following configurations here, to avoid them being saved for field upgrade + if [ "x${NO_RECOMMENDATIONS}" = "x1" ]; then + smart --data-dir=$1/var/lib/smart config --set ignore-all-recommends=1 + fi for i in ${PACKAGE_EXCLUDE}; do smart --data-dir=$1/var/lib/smart flag --set exclude-packages $i done -- cgit 1.2.3-korg