From 8a7458234d922c522f3983da5cf075d1abc15c7f Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 1 Nov 2011 02:26:59 +0000 Subject: [PATCH] Create the tmp file to ramdisk instead of NFS folder to avoid NFS issues during bringup paging space git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@10939 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 35133920e..68ed8c258 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -6678,7 +6678,18 @@ sub update_dd_boot # add basecuse removal for swapdev print DDBOOT $basecustrm; } - print DDBOOT $l; + if ($l =~ /odmadd \/tmp\/swapnfs/) + { + $l =~ s/tmp\/swapnfs/swapnfs/g; + print DDBOOT $l; + print DDBOOT "\n rm -f /swapnfs\n"; + } else { + if ($l =~ /tmp\/swapnfs/) + { + $l =~ s/tmp\/swapnfs/swapnfs/g; + } + print DDBOOT $l; + } } close(DDBOOT); }