diff --git a/perl-xCAT/xCAT/Common.pm b/perl-xCAT/xCAT/Common.pm index 0d2e42fb2..6131878c9 100644 --- a/perl-xCAT/xCAT/Common.pm +++ b/perl-xCAT/xCAT/Common.pm @@ -6,6 +6,7 @@ package xCAT::Common; use File::stat; use File::Copy; +use Thread qw/yield/; BEGIN { @@ -42,7 +43,7 @@ sub forward_data { close($rfh); } } - yield; #Try to avoid useless iterations as much as possible + yield(); #Try to avoid useless iterations as much as possible return $rc; } diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 2f91ea743..528fba832 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -2277,7 +2277,7 @@ sub makecustomizedmod { close($shadow); if (-e "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking") { mkpath($tempdir."/etc/vmware/init/init.d"); - copy( "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking",$tempdir."/etc/vmware/init/init.d/47.xcat-networking" + copy( "$::XCATROOT/share/xcat/netboot/esxi/47.xcat-networking",$tempdir."/etc/vmware/init/init.d/47.xcat-networking"); } #TODO: auto-enable ssh and request boot-time customization rather than on-demand? require Cwd;