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:
parent
d86b454baf
commit
7e6303a85b
@ -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"] });
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user