Stateless images were not getting the timezone from site.timezone like stateful images were. Now it's being copied to /etc/localtime. Tested with RHELS5.4.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5661 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
eb756f9804
commit
4c29c0e054
@ -309,7 +309,7 @@ sub copybootscript {
|
||||
my $arch = shift;
|
||||
my $profile = shift;
|
||||
my $callback = shift;
|
||||
|
||||
my @timezone = xCAT::Utils->get_site_attribute("timezone");
|
||||
|
||||
if ( -f "$installroot/postscripts/xcatdsklspost") {
|
||||
|
||||
@ -317,6 +317,10 @@ sub copybootscript {
|
||||
mkpath("$rootimg_dir/opt/xcat");
|
||||
|
||||
copy ("$installroot/postscripts/xcatdsklspost", "$rootimg_dir/opt/xcat/xcatdsklspost");
|
||||
if($timezone[0]) {
|
||||
copy ("$rootimg_dir/usr/share/zoneinfo/$timezone[0]", "$rootimg_dir/etc/localtime");
|
||||
}
|
||||
|
||||
|
||||
chmod(0755,"$rootimg_dir/opt/xcat/xcatdsklspost");
|
||||
|
||||
@ -327,6 +331,8 @@ sub copybootscript {
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
return 1;
|
||||
}
|
||||
|
||||
# the following block might need to be removed as xcatdsklspost.aix may no longer be used
|
||||
if ( -f "$installroot/postscripts/xcatdsklspost.aix") {
|
||||
copy ("$installroot/postscripts/xcatdsklspost.aix", "$rootimg_dir/opt/xcat/xcatdsklspost.aix");
|
||||
chmod(0755,"$rootimg_dir/opt/xcat/xcatdsklspost.aix");
|
||||
|
Loading…
Reference in New Issue
Block a user