[Fedora-livecd-list] Overriding package inclusions/exclusions in kickstart files

Alan Pevec apevec at gmail.com
Wed Apr 13 08:24:08 UTC 2011


On Wed, Apr 13, 2011 at 4:34 AM, James Heather <j.heather at surrey.ac.uk> wrote:
> Is this expected behaviour? It seems weird to me.

Yes,  that's the current implementation:
package patterns are resolved only when building Yum transaction,
selected are added first, then deselected are removed, see
imgcreate.ImageCreator.install()
while overrides work verbatim when pykickstart is parsing %packages
sections, from pykickstart.parser.Packages.add():
        existingPackageSet = (existingPackageSet - newExcludedSet) |
newPackageSet
        existingExcludedSet = (existingExcludedSet -
existingPackageSet) | newExcludedSet

After that, order information is lost and to fix this pykickstart
needs to be extended to provide original package list to livecd.
As a test you can try ksflatten on your kickstart, to see how is it
parsed and what livecd-creator is getting.

Alan


More information about the livecd mailing list