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'};