File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2396,11 +2396,8 @@ def format_host_time(t):
23962396 # Try common BSD NTP tools with rdate fallback
23972397 sync_cmd = "ntpdate -u {0} || ntpdig -S {0} || sntp -sS {0} || rdate pool.ntp.org || rdate time.nist.gov" .format (ntp_servers )
23982398 elif guest_os == 'omnios' :
2399- # OmniOS specific: rdate to time.nist.gov was confirmed to work in previous runs.
2400- major_ntp = ntp_servers .split ()[0 ]
2401- sync_cmd = ("rdate time.nist.gov || /usr/bin/rdate time.nist.gov || /usr/sbin/rdate time.nist.gov || "
2402- "/usr/sbin/ntp-setdate {0} || /usr/lib/inet/ntpdate -u {0} || /usr/sbin/ntpdate -u {0} || ntpdate -u {0} || "
2403- "/usr/lib/inet/sntp -s {0} || /usr/bin/sntp -s {0} || sntp -s {0}" ).format (major_ntp )
2399+ # OmniOS: chrony is the preferred and often only functional tool.
2400+ sync_cmd = "chronyc -a makestep || (svcadm enable chrony && sleep 2 && chronyc -a makestep)"
24042401 elif guest_os in ['solaris' , 'openindiana' ]:
24052402 # General Solaris-like systems
24062403 sync_cmd = "ntpdate -u {0} || sntp -sS {0}" .format (ntp_servers )
You can’t perform that action at this time.
0 commit comments