fixed problem that mounts on /proc in genimage for SLES.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@5391 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
linggao 2010-03-05 18:53:20 +00:00
parent 9b0e28df5d
commit f0b3ff688e

View File

@ -437,14 +437,14 @@ if($mode eq "statelite") {
#otherwise got kernal panic when installing
#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 $MFD;
open MFD, "/proc/mounts";
my @lines = <MFD>;
close MFD;
my $ret = grep m{$rootimg_dir/proc}, @lines;
if($ret > 0) {
system("umount $rootimg_dir/proc");
system("umount -l $rootimg_dir/proc");
}
mkinitrd();