From 254643a5c793b563c6f7342edbc4b873e3411d9a Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 19 Sep 2012 06:00:33 +0000 Subject: [PATCH] Fixing bug 3568357: Overwrite the swapnfs tmp file instead of append it. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@13845 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/aixinstall.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/aixinstall.pm b/xCAT-server/lib/xcat/plugins/aixinstall.pm index 01f7db3de..9b307fc14 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -7143,6 +7143,10 @@ sub update_dd_boot $l =~ s/tmp\/swapnfs/swapnfs/g; print DDBOOT $l; print DDBOOT "\n rm -f /swapnfs\n"; + } + elsif ($l =~ /echo "CuDv:" >> \/swapnfs/ ) + { + print DDBOOT "echo \"CuDv:\" > /swapnfs\n"; } else { if ($l =~ /tmp\/swapnfs/) {