Jason Kohles wrote:
On Jan 25, 2007, at 6:07 PM, Jason Edgecombe wrote:
John Summerfield wrote:
Jason Edgecombe wrote:
Hi,
I would like to have a unified kickstart file for both my i386 and
x86_64 installs. So I have two questions:
1. Is there some way to detect whether the processor is 32/64 bit
in a %pre script?
See /proc/cpuinfo
2. Will the 32-bt installer install the 64bit rpms if I point it at
a 64bit install tree?
I'm Doubtful, but try it. What's the cost of a failure?
I figured /proc/cpuinfo would be the ticket, but I have no clue what
to look for. Where can I find the docs for all of the info in /
proc/cpuinfo?
Look at what's there, it's fairly obvious.
'uname -i' is probably a better option than digging through cpuinfo.
sure:
root@Bandicoot:~# cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 6
model : 8
model name : AMD Sempron(tm) 2400+
stepping : 1
cpu MHz : 1660.135
cache size : 256 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 mmx fxsr sse syscall mp mmxext 3dnowext 3dnow up ts
bogomips : 3331.52
root@Bandicoot:~# uname -i
unknown
root@Bandicoot:~#
I don't know _why_ that happens; it was just the first one to hand.
--
Cheers
John
-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx Z1aaaaaaa@xxxxxxxxxxxxxxxx
Please do not reply off-list