From f0b3ff688e05be20df399717979de54b2e66579d Mon Sep 17 00:00:00 2001 From: linggao Date: Fri, 5 Mar 2010 18:53:20 +0000 Subject: [PATCH] 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 --- xCAT-server/share/xcat/netboot/sles/genimage | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/sles/genimage b/xCAT-server/share/xcat/netboot/sles/genimage index df9793d52..be9285703 100755 --- a/xCAT-server/share/xcat/netboot/sles/genimage +++ b/xCAT-server/share/xcat/netboot/sles/genimage @@ -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 = ; -close MTABFD; +my $MFD; +open MFD, "/proc/mounts"; +my @lines = ; +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();