mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 20:17:55 +00:00
fdeafa3e3f
setupntp stops and disables systemd-timesyncd so it does not discipline the clock against the daemon being configured. That block sits ~24 lines below the `exec setupntp.traditional` the ntpd path takes, and setupntp.traditional never mentions timesyncd -- so on the ntpd path the disable is never reached and both end up stepping the clock. setupntp resets PATH at the top, so PATH stubs cannot shadow anything in it; the region is extracted and driven with systemctl shadowed by a shell function, which bash resolves ahead of PATH. `exec` is a builtin and cannot be shadowed, so the harness puts a recording stand-in where the script execs -- the run ending there is the behaviour under test. Five of the eight assertions pass already, pinning the chrony path and the hand-off itself. The three that fail are the ntpd path. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>