From f4a825875c1f98077e37e02e22a689efbf1ef3aa Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Tue, 1 Nov 2011 02:29:34 +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/trunk@10940 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 0f0ed7bd0..c18eb7472 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -6895,7 +6895,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); }