Michael Schwendt wrote:

That may be what Michael wanted, but is there a way to find out what arch the currently running kernel was built for?


$ rpm -q --qf "%{arch}\n" kernel-$(uname -r)


Only works if the kernel is from an rpm.

What about an arbitrary kernel in /boot, can you determine what arch it's for?


$ rpm -qf --qf "%{arch}\n" /boot/vmlinuz-*


Again only works for kenels installed with/by rpm .

I could have a custom kernel in /boot, but not remember if it was i386, i686, or athlon.
How can I tell?


You can't, because "uname -r" does not show the difference between
i686 and athlon. Keep your kernel config.

does any output from uname sow the differences?
I maintain an Athlon, a K6-2, a K6-III, and a PIII system. I usually build costom kernels for each,
with a few tweaks that Red Hat leaves out (especially for the K6's). So there's no easy way to
tell if the file vmlinuz was built for a given architecture?


I had hoped Red Hat would have added something for that by now. I can easily overwrite the vimlinuz
file from and rpm with a cutom kernel, and all I would know is it's not from the rpm (using --verify), but
not what it was for.


... Has the patch to append the .config file to the kernel been maintained?...

-Thomas




-- Psyche-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/psyche-list

Reply via email to