[PATCH] Add an option to disable even installing the core group.
Vratislav Podzimek
vpodzime at redhat.com
Fri Mar 21 08:00:37 UTC 2014
On Thu, 2014-03-20 at 11:15 -0400, Chris Lumens wrote:
> Use this one wisely - it may result in a system that doesn't do anything.
> ---
> pykickstart/parser.py | 6 ++++++
> pykickstart/sections.py | 14 +++++++++++++-
> tests/parser/packages.py | 22 ++++++++++++++++++++++
> 3 files changed, 41 insertions(+), 1 deletion(-)
>
> diff --git a/pykickstart/parser.py b/pykickstart/parser.py
> index 94b21bb..0e3cb71 100644
> --- a/pykickstart/parser.py
> +++ b/pykickstart/parser.py
> @@ -262,6 +262,9 @@ class Packages(KickstartObject):
>
> addBase -- Should the Base group be installed even if it is
> not specified?
> + nocore -- Should the Core group be skipped? This results in
> + a %packages section that basically only installs the
> + packages you list, and may not be a usable system.
> default -- Should the default package set be selected?
> environment -- What base environment should be selected? Only one
> may be chosen at a time.
> @@ -290,6 +293,7 @@ class Packages(KickstartObject):
> KickstartObject.__init__(self, *args, **kwargs)
>
> self.addBase = True
> + self.nocore = False
> self.default = False
> self.environment = None
> self.excludedList = []
> @@ -341,6 +345,8 @@ class Packages(KickstartObject):
> retval += " --excludedocs"
> if not self.addBase:
> retval += " --nobase"
> + if self.nocore:
> + retval += " --nocore"
> if self.handleMissing == constants.KS_MISSING_IGNORE:
> retval += " --ignoremissing"
> if self.instLangs:
> diff --git a/pykickstart/sections.py b/pykickstart/sections.py
> index 51c304a..bd98fb1 100644
> --- a/pykickstart/sections.py
> +++ b/pykickstart/sections.py
> @@ -3,7 +3,7 @@
> #
> # Chris Lumens <clumens at redhat.com>
> #
> -# Copyright 2011 Red Hat, Inc.
> +# Copyright 2011, 2014 Red Hat, Inc.
This should probably be 2011-2014.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list