diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index 0d2717726..dd4761652 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -2880,6 +2880,9 @@ sub copycd { sub makecustomizedmod { my $osver = shift; my $dest = shift; + # if it already exists, do not overwrite it because it may be someone + # else's custom image + if(-f "$dest/mod.tgz"){ return 1; } my $passtab = xCAT::Table->new('passwd'); my $tmp; my $password;