For newer versions of esxi for which we have selected a less vague name, ensure we remake it every time.

This commit is contained in:
Jarrod Johnson 2013-10-21 10:44:15 -04:00
parent 53ba1913c4
commit daceb8d876

View File

@ -4357,12 +4357,12 @@ sub makecustomizedmod {
my $modname;
if ($osver =~ /esxi4/) { #want more descriptive name,but don't break esxi4 setups.
$modname="mod.tgz";
# if it already exists, do not overwrite it because it may be someone
# else's custom image
if(-f "$dest/$modname"){ return 1; }
} else {
$modname="xcatmod.tgz";
}
# if it already exists, do not overwrite it because it may be someone
# else's custom image
if(-f "$dest/$modname"){ return 1; }
my $passtab = xCAT::Table->new('passwd');
my $tmp;
my $password;