Determining if system has multiple processors in %post section

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello list,

In the %post section I need to determine how many processors my system has.
If there is one processor I will install my recompiled kernel, otherwise
I'll let the default be the smp-kernel.  I thought I could grep the
/proc/cpuinfo file to determine the number of processors but during
kickstart it only shows one processor even though my system has two.  The
file doesn't seem to get updated with information for the second processor
until the system boots into the smp-kernel.  Any thoughts/hints on how I
could determine the number of processors in the system?  How does anaconda
automagically know when there are multiple processors?

Thank you.

Rebecca





[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux