mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-13 01:40:26 +00:00
Fixed bug 3132861: If there is no /etc/modprobe.conf, there will be one warning msg output. Now all the opreations related to /etc/modprobe.confwill be added in the check of whether the file is existing.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8478 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
@ -131,10 +131,9 @@ if ( $PLTFRM eq "Linux" ) {
|
||||
{
|
||||
updatefile("/etc/modprobe.conf", "options ib_ehca nr_ports=1");
|
||||
updatefile("/etc/modprobe.conf", "options ib_ehca lock_hcalls=0");
|
||||
runcmd("echo 'options ib_ehca lock_hcalls=0' >> /etc/modprobe.conf");
|
||||
}
|
||||
|
||||
runcmd("echo 'options ib_ehca lock_hcalls=0' >> /etc/modprobe.conf");
|
||||
|
||||
my $rdma_cmd = "/sbin/chkconfig --level 2345 $ib_driver on";
|
||||
runcmd($rdma_cmd);
|
||||
my $rdma_start_cmd = "/sbin/service $ib_driver restart";
|
||||
|
Reference in New Issue
Block a user