detecting i386 or x86_64 in kickstart
Jason Edgecombe
redhat at rampaginggeek.com
Fri Jan 26 18:07:44 UTC 2007
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?
>>
> 'uname -i' is probably a better option than digging through cpuinfo.
It lies. uname -i give me what architecture of software is installed. I
need cpuinfo to know if the cpu is capable of 64bit.
I seems like I'm going to need to use cobbler or otherwise keep a
database and have a dynamically generated ks file via http.
Jason
More information about the Kickstart-list
mailing list