diff --git a/xCAT-server/share/xcat/netboot/rh/genimage b/xCAT-server/share/xcat/netboot/rh/genimage index 0c4bf571c..585d02ccf 100755 --- a/xCAT-server/share/xcat/netboot/rh/genimage +++ b/xCAT-server/share/xcat/netboot/rh/genimage @@ -339,6 +339,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"); # install extra packages my $yumcmd_base = $yumcmd; @@ -363,6 +366,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"); # remove the packages that are specified in the otherpkgs.list files with leading '--' if (exists ($extra_hash{$pass}{'POST_REMOVE'})) {