diff --git a/xCAT-nbroot/xcat-core-nbroot.spec b/xCAT-nbroot/xcat-core-nbroot.spec index 2d3cb92f3..871254564 100644 --- a/xCAT-nbroot/xcat-core-nbroot.spec +++ b/xCAT-nbroot/xcat-core-nbroot.spec @@ -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 - diff --git a/xCAT-server-2.0/lib/xcat/plugins/copycds.pm b/xCAT-server-2.0/lib/xcat/plugins/copycds.pm index c7bd0f0b6..9a7f74583 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/copycds.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/copycds.pm @@ -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; }