mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-21 16:39:30 +00:00
2baa56534c
The EL 10 riscv64 compute node installs no package. Its kickstart carries "timezone Could not determine timezone checksum --utc" at line 21, anaconda answers "One or zero arguments are expected for the timezone command", and the node holds status=installing until retry_install.sh reinstalls over it (build 114). gettimezone in Utils.pm compares /etc/localtime against every file under /usr/share/zoneinfo and, when that pipeline exits non-zero, returns the string "Could not determine timezone checksum" to its caller as a name. The Rocky 10.2 riscv64 cloud image ships no /etc/localtime and runs on UTC, so the pipeline prints nothing and exits 1. gettimezone now reads the /etc/localtime symlink first, which is what every current distribution uses and what the scan cannot answer for a host with no /etc/localtime, then the scan, then /etc/timezone, and returns UTC when none of them names a zone. It never returns a value with a space in it, which is all the kickstart timezone command accepts. The paths take an optional root prefix so the test drives them against a scratch tree. xCAT-test/unit/utils_gettimezone.t stops without _zone_from_path, and each of the three sources it asserts fails a separate assertion when it is removed. Signed-off-by: Daniel Hilst <392820+dhilst@users.noreply.github.com>
xCAT is a toolkit for the deployment and administration of clusters. xCAT documentation is available at: http://xcat-docs.readthedocs.org/ xCAT is made available as open source software under the EPL license: http://www.opensource.org/licenses/eclipse-1.0.php