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
This commit is contained in:
wanghuaz 2011-11-01 02:29:34 +00:00
parent b89abbd6ed
commit f4a825875c

View File

@ -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);
}