2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-22 03:32:04 +00:00

Print warning from packimage when timezone setup fails

This commit is contained in:
besawn 2021-12-01 09:14:37 -05:00
parent d86b454baf
commit 7e6303a85b

View File

@ -351,6 +351,10 @@ sub process_request {
# Add the zoneinfo to the include list
$excludetext .= "+./usr/share/zoneinfo/$timezone[0]\n";
if (not stat "$rootimg_dir/etc/localtime") {
$callback->({ warning => ["Unable to set timezone to \'$timezone[0]\', check this is a valid timezone"] });
}
} else {
$callback->({ info => ["No timezone defined in site table, skipping timezone configuration"] });
}