[rhel7-branch][PATCH] Don't enable chronyd if disabled in kickstart (#1002583)
Vratislav Podzimek
vpodzime at redhat.com
Wed Sep 4 11:20:53 UTC 2013
On Wed, 2013-09-04 at 12:54 +0200, Martin Kolman wrote:
> If the chronyd service is disabled in kickstart, it should not be
> automatically enabled.
>
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
> pyanaconda/kickstart.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
> index 031a6f1..3993fd3 100644
> --- a/pyanaconda/kickstart.py
> +++ b/pyanaconda/kickstart.py
> @@ -1301,7 +1301,8 @@ class Timezone(commands.timezone.F18_Timezone):
> ksdata.packages.packageList.append(NTP_PACKAGE)
> self._added_chrony = True
>
> - if not NTP_SERVICE in ksdata.services.enabled:
> + if not NTP_SERVICE in ksdata.services.enabled and \
> + not NTP_SERVICE in ksdata.services.disabled:
> ksdata.services.enabled.append(NTP_SERVICE)
> self._enabled_chrony = True
>
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list