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
This commit is contained in:
wanghuaz 2012-09-19 06:05:04 +00:00
parent 6e23f41286
commit 8191a663cc

View File

@ -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/)
{