mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 03:12:30 +00:00 
			
		
		
		
	Print warning from packimage when timezone setup fails
This commit is contained in:
		| @@ -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"] }); | ||||
|             } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user