From 101ac6c3aaadf68ddad035ca8ae3ce4b22bda2be Mon Sep 17 00:00:00 2001 From: wanghuaz Date: Fri, 30 Mar 2012 04:05:56 +0000 Subject: [PATCH] revert 12048 since enabling /proc in rootimage will cause xcat-server and other possible packages think they are installed on a running system and try to start their services. This should not be an good solution to handle the previous problem. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12066 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/netboot/rh/genimage | 8 -------- 1 file changed, 8 deletions(-) diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 585d02ccf..6abfb5e56 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -339,10 +339,6 @@ unless ($onlyinitrd) { } } - # mount /proc file system since several packages need it. - print "mount /proc file system\nchroot $rootimg_dir /bin/mount -t proc proc /proc\n"; - system("chroot $rootimg_dir /bin/mount -t proc proc /proc"); - # install extra packages my $yumcmd_base = $yumcmd; $yumcmd .= "install "; @@ -366,10 +362,6 @@ unless ($onlyinitrd) { print "No Packages marked for install\n"; } - # umount /proc file system that just mounted - print "umount /proc file system\nchroot $rootimg_dir /bin/umount /proc\n"; - system("chroot $rootimg_dir /bin/umount /proc"); - # remove the packages that are specified in the otherpkgs.list files with leading '--' if (exists ($extra_hash{$pass}{'POST_REMOVE'})) { my $pa=$extra_hash{$pass}{'POST_REMOVE'};