mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 17:23:08 +00:00
Merge pull request #4521 from immarvin/ontz
remove the /etc/localtime before copy timezone file when packimage
This commit is contained in:
commit
4a2de882df
@ -629,6 +629,7 @@ sub copybootscript {
|
||||
|
||||
copy("$installroot/postscripts/xcatdsklspost", "$rootimg_dir/opt/xcat/xcatdsklspost");
|
||||
if ($timezone[0]) {
|
||||
unlink("$rootimg_dir/etc/localtime");
|
||||
copy("$rootimg_dir/usr/share/zoneinfo/$timezone[0]", "$rootimg_dir/etc/localtime");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user