From 8191a663cc9614a9a2f07d55408e1a38e11c3895 Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Wed, 19 Sep 2012 06:05:04 +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/trunk@13846 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 00dee5240..d7af607e5 100644 --- a/xCAT-server/lib/xcat/plugins/aixinstall.pm +++ b/xCAT-server/lib/xcat/plugins/aixinstall.pm @@ -7229,6 +7229,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/) {