the defect 2836707 is fixed; one checkpoint is added to check whether the /proc fs is mounted in the rootimg

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3991 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
mxi1 2009-08-13 08:36:38 +00:00
parent ace55166f4
commit db25b8cac4

View File

@ -264,7 +264,17 @@ if (($postinstall_filename) && (-x $postinstall_filename)) {
#some rpms mounts the imageroot/proc on the /proc, need to release it,
#otherwise got kernal panic when installing
`umount $installroot/netboot/$osver/$arch/$profile/rootimg/proc`;
#sometimes, the proc fs is not mounted, so one warning/error message will display,
#and I add one check point here.
my $MTABFD;
open MTABFD, "/etc/mtab";
my @lines = <MTABFD>;
close MTABFD;
my $ret = grep m{$installroot/netboot/$osver/$arch/$profile/rootimg/proc}, @lines;
if($ret > 0) {
system("umount $installroot/netboot/$osver/$arch/$profile/rootimg/proc");
}
mkinitrd();