Fix path problem in the xCAT nbroot core spec. Fix problem where copycds would

fail on read-only iso files


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@252 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-01-13 16:56:23 +00:00
parent dba3749119
commit 76a2fa561c
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/xcat/netboot/%{tarch}/nbroot
cd $RPM_BUILD_ROOT/usr/share/xcat/netboot/%{tarch}/nbroot
tar zxvf %{SOURCE1}
chmod 755 etc/S40network bin/getdestiny bin/getdestiny.awk bin/getipmi bin/getipmi.awk
chmod 755 etc/init.d/S40network bin/getdestiny bin/getdestiny.awk bin/getipmi bin/getipmi.awk
cd -

View File

@ -51,7 +51,7 @@ sub process_request {
return;
}
mkdir "/mnt/xcat";
if (system("mount -o loop $_ /mnt/xcat")) {
if (system("mount -o loop,ro $_ /mnt/xcat")) {
$callback->({error=>"copycds was unable to examine $_ as an install image"});
return;
}