mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 20:17:55 +00:00
b3d6e1f9aa
xCAT::NTP::Backend->available reports chrony as available when chronyd exists. makentp configures chrony only when systemctl exists as well, and setupntp hands over to ntpd without it. On a host with chronyd and no systemctl the selector answers chrony, makentp takes the ntpd path anyway, and the admin is told nothing. ntp_backend_selection.t drives available and choose with the command probe injected, so a case can hold chronyd present and systemctl absent without depending on what the test host has installed. Six assertions fail: available reports chrony on chronyd alone, and choose neither downgrades nor asks for an install. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>