First extending yum's exclude setting with packages excluded from the compose in the kickstart package manifest helps in group selection (see also #456882), since @core has a mandatory package called "fedora-logos". Although livecd-tools already removes the packages (after package and group selection) in the excluded list, I think this is cleaner as not even dependency resolving will know about the package explicitly excluded (and the package is thus not pulled in accidently, afterwards).

Kind regards,

Jeroen van Meeuwen
-kanarip
diff --git a/imgcreate/creator.py b/imgcreate/creator.py
index e61f034..bcdcdaa 100644
--- a/imgcreate/creator.py
+++ b/imgcreate/creator.py
@@ -634,9 +634,12 @@ class ImageCreator(object):
             rpm.addMacro("__file_context_path", "%{nil}")
 
         try:
+            # Excluding the packages first helps in group selection
+            ayum.conf.exclude.extend(self._get_excluded_packages())
             self.__select_packages(ayum)
             self.__select_groups(ayum)
-            self.__deselect_packages(ayum)
+            # Presumably, this isn't needed anymore
+            #self.__deselect_packages(ayum)
 
             self.__can_handle_selinux(ayum)
 
--
Fedora-livecd-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list

Reply via email to