[PATCH] Allow skipping installation of the core group, if asked for in kickstart.

David Shea dshea at redhat.com
Thu Mar 20 20:00:02 UTC 2014


On 03/20/2014 11:16 AM, Chris Lumens wrote:
> Should the user do this, a message gets logged so we will know what's going on
> when we get bug reports with stuff that ought to be installed missing.
> ---
>   anaconda.spec.in                   | 2 +-
>   pyanaconda/packaging/yumpayload.py | 5 ++++-
>   2 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/anaconda.spec.in b/anaconda.spec.in
> index 593447b..107306d 100755
> --- a/anaconda.spec.in
> +++ b/anaconda.spec.in
> @@ -21,7 +21,7 @@ Source0: %{name}-%{version}.tar.bz2
>   # Also update in AM_GNU_GETTEXT_VERSION in configure.ac
>   %define gettextver 0.18.3
>   %define intltoolver 0.31.2-3
> -%define pykickstartver 1.99.51
> +%define pykickstartver 1.99.52
>   %define yumver 3.4.3-91
>   %define dnfver 0.4.18
>   %define partedver 1.8.1
> diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py
> index b1955b6..b74d406 100644
> --- a/pyanaconda/packaging/yumpayload.py
> +++ b/pyanaconda/packaging/yumpayload.py
> @@ -1207,7 +1207,10 @@ reposdir=%s
>   
>               This follows the same ordering/pattern as kickstart.py.
>           """
> -        self._selectYumGroup("core")
> +        if self.data.packages.nocore:
> +            log.info("skipping core group due to %%packages --nocore; system may not be complete")
> +        else:
> +            self._selectYumGroup("core")
>   
>           env = None
>   

dnfpayload.py has the same thing in _apply_selections, so might as well 
add a check there, too. Other than that these look good.


More information about the anaconda-patches mailing list