PDA

View Full Version : Getting the Kernel Version from the image



dave
May 18th, 2006, 06:53 PM
I am doing some work on comparing filesystem images, and have a question about the kernel.

Kernels when compiled compile in the date/time, so the same .config file will have 2 different kernels (at least by hash) made.

I was wondering if there was a way to find out kernel information based on the file itself.

tomchuk
May 19th, 2006, 06:36 PM
This should work:



head -n20 <kernel image> | strings | grep '^2'