-Have copycds prefer udf when image has both iso9660 and udf (like MS media seems to)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2090 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-09-07 03:27:58 +00:00
parent 869ccb9f5f
commit 58eaf5f7ee

View File

@ -74,11 +74,11 @@ sub process_request {
}
else { $file = $_; }
my $mntopts;
my $mntopts = "-t udf,iso9660"; #Prefer udf formate to iso when media supports both, like MS media
if (-r $file and -b $file) # Block device?
{ $mntopts = "-o ro"; }
{ $mntopts .= " -o ro"; }
elsif (-r $file and -f $file) # Assume ISO file
{ $mntopts = "-o ro,loop"; }
{ $mntopts .= " -o ro,loop"; }
else {
$callback->({error=>"The management server was unable to find/read $file. Ensure that file exists on the server at the specified location."});
return;