Don't mount /proc fs since it will confuse the rpm or scripts that they are on diskless nodes.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15475 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
wanghuaz 2013-03-13 09:54:45 +00:00
parent 5f8ed93998
commit 774c178272
2 changed files with 8 additions and 8 deletions

View File

@ -360,9 +360,9 @@ 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");
# # 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;
@ -387,9 +387,9 @@ 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");
# # 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'})) {

View File

@ -1666,7 +1666,7 @@ sub mount_chroot {
mkdir("$rootimage_dir/mnt/pkgdir");
mkdir("$rootimage_dir/mnt/otherpkgdir");
system("mount -o bind /dev $rootimage_dir/dev");
system("mount -o bind /proc $rootimage_dir/proc");
# system("mount -o bind /proc $rootimage_dir/proc");
system("mount -o bind /sys $rootimage_dir/sys");
system("mount -o bind $pkgdir $rootimage_dir/mnt/pkgdir");
if ($otherpkgdir){
@ -1677,7 +1677,7 @@ sub mount_chroot {
sub umount_chroot {
my $rootimage_dir = shift;
system("umount $rootimage_dir/dev");
system("umount $rootimage_dir/proc");
# system("umount $rootimage_dir/proc");
system("umount $rootimage_dir/sys");
system("umount $rootimage_dir/mnt/pkgdir");
system("umount $rootimage_dir/mnt/otherpkgdir");