if the file with bind option doesn't exist in the rootimg, we should create one

which is the fix for defect 2979871


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5789 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2010-04-16 03:16:41 +00:00
parent 5f1d0c6f3e
commit c980175be7

View File

@ -334,6 +334,18 @@ sub liteMe {
my $rif = $rootimg_dir . $f;
my $d = dirname($f);
# if no such file like $rif, create one
if ( !(-e "$rif") ) {
my $rifstr = $rif;
if($f =~ m{/$}) {
$verbose && $callback->({info=>["mkdir -p $rif"]});
system("mkdir -p $rif");
} else {
$verbose && $callback->({info=>["touch $rif"]});
system("touch $rif");
}
}
if( !(-e "$rootimg_dir/.default$d") ) {
$verbose && $callback->({info=>["mkdir -p $rootimg_dir/.default$d"]});
system("mkdir -p $rootimg_dir/.default$d");