From 76a2fa561cc1e9d4576b20e5b88aeeb66de20402 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sun, 13 Jan 2008 16:56:23 +0000 Subject: [PATCH] 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 --- xCAT-nbroot/xcat-core-nbroot.spec | 2 +- xCAT-server-2.0/lib/xcat/plugins/copycds.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }