[master] Use ntplib module instead of ntpdate

Vratislav Podzimek vpodzime at redhat.com
Fri Jul 26 11:41:03 UTC 2013


I've packaged the ntplib module [1] for Fedora, so that we can use it in the
Anaconda installer instead of ntpdate. One would think that there must be a
library to do NTP queries, but ntpdate, chrony and others don't provide any. The
ntplib module is written purely in Python.

Using ntpdate is quite problematic, because:
a) it cannot be deprecated if we require it,
b) forking process for every NTP query is slow, may cause problems in
combination with threads and it eats a lot of random data entropy (every fork
does).

[1] http://pypi.python.org/pypi/ntplib/

Vratislav Podzimek (1):
  Use tiny, fast and thread-safe ntplib module instead of ntpdate

 anaconda.spec.in            |  2 +-
 pyanaconda/isys/__init__.py | 11 +++++++++++
 pyanaconda/isys/isys.c      | 19 +++++++++++++++++++
 pyanaconda/ntp.py           | 38 ++++++++++++++++++++++++++------------
 4 files changed, 57 insertions(+), 13 deletions(-)

-- 
1.7.11.7



More information about the anaconda-patches mailing list