-Have genimage pre-emptively mkpath on every destination directory before attempting copy

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1547 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-06-02 15:41:50 +00:00
parent 0b47f9d8f0
commit 927575ef4b

View File

@ -378,6 +378,7 @@ EOMS
if (-f "$pathtofiles/".$_->[0]) {
$srcpath="$pathtofiles/".$_->[0];
}
mkpath(dirname("/tmp/xcatinitrd.$$/".$_->[1]));
copy($srcpath,"/tmp/xcatinitrd.$$/".$_->[1]);
chmod 0755,"/tmp/xcatinitrd.$$/".$_->[1];
} else {
@ -385,6 +386,7 @@ EOMS
if (-f "$pathtofiles/$_") {
$srcpatch = "$pathtofiles/$_";
}
mkpath(dirname("/tmp/xcatinitrd.$$/$_"));
copy("$srcpath","/tmp/xcatinitrd.$$/$_");
chmod 0755,"/tmp/xcatinitrd.$$/".$_;
}