mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-04 20:17:55 +00:00
1b81af0d1d
An xCAT management node must serve time to its compute nodes (they point at ntpservers=<xcatmaster>). Ubuntu ships only systemd-timesyncd, an SNTP client that disciplines the local clock but cannot serve time, and makentp supports chronyd and ntpd only. On a stock Ubuntu MN makentp therefore fails outright with "Please make sure ntpd is installed", reddening reg_linux_diskfull_installation_flat. Two further defects compound it. setupntp hard-requires hwclock through check_exec_or_exit, but Ubuntu 24.04 moved hwclock into util-linux-extra, which is absent from minimal images -- so the whole NTP setup, including the clock step that does not need hwclock at all, aborts. And systemd-timesyncd is part of systemd rather than a time-daemon package, so it coexists at the package level and keeps disciplining the clock against whichever daemon xCAT just configured. Assert a shared, unit-tested daemon selector in the spirit of xCAT::DHCP::Backend, the package dependencies that guarantee a server-capable daemon and hwclock, and the setupntp changes. All fail today. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>