How/Where to find .config that were used for kernel on CD?

You have a problem with Salix? Post here and we'll do what we can to help.
ehfortin
Posts: 4
Joined: 27. Sep 2010, 23:59

How/Where to find .config that were used for kernel on CD?

Post by ehfortin »

Hi,

Well, I've done some search around this and I don't seems to find a way to get the .config that was used to generate the kernel that is on a specific CD. I was thinking at the source repository but I don't get the way it is stored. I'm assuming these .config are generated by some tools/scripts so that may be why I'm not seeing them directly.

Is there a relatively easy way of getting those? I've tried to do a make oldconfig and then make menuconfig but... doing this is giving me a config that, once compiled, is not booting on my machine. So, as the one on the CD work well, I would like to start from this one as the base point.

I'm sure this is an easy one but I just seems unable to figure it.

Thank you.

ehfortin
rhadamanthys
Posts: 15
Joined: 11. Jun 2010, 09:47

Re: How/Where to find .config that were used for kernel on CD?

Post by rhadamanthys »

You should find the config of your current installed kernel in /boot
ehfortin
Posts: 4
Joined: 27. Sep 2010, 23:59

Re: How/Where to find .config that were used for kernel on CD?

Post by ehfortin »

:oops:

That was too easy. I can see the config from what I've installed. However, if I boot from the CD, I don't seems to see the config file. Actually, I see nothing in /boot (it is a link to /mnt/boot). Is it hidden somewhere else?

Thank you for this quick answer.

ehfortin
rhadamanthys
Posts: 15
Joined: 11. Jun 2010, 09:47

Re: How/Where to find .config that were used for kernel on CD?

Post by rhadamanthys »

ah, ok,

booting from cd is normaly done with isolinux. so when you just mount your cd, there should be a directory called /isolinux with a file called isolinux.cfg. in this file you can see which kernel is loaded.(and from where). Maybe /kernels/..
Where and if this directory gets mounted when you boot from the cd, i don't know. A developer can awnser that ( or you extract the initrd and walk thru the init process).
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: How/Where to find .config that were used for kernel on CD?

Post by gapan »

Code: Select all

less /proc/config.gz
Image
Image
User avatar
damNageHack
Posts: 663
Joined: 24. Sep 2009, 17:07

Re: How/Where to find .config that were used for kernel on CD?

Post by damNageHack »

gapan wrote:

Code: Select all

less /proc/config.gz
Thanks for the hint. I've not known till now that less can uncompress by itself.
Debian used "lesspipe" (in the very old past I was using it, i think it was the etch edition) to uncompress and some usage of a pipe for the result, so you had to combine lesspipe with less or grep in some weird way.
{edited some bad typos}
Last edited by damNageHack on 30. Sep 2010, 14:54, edited 1 time in total.
ehfortin
Posts: 4
Joined: 27. Sep 2010, 23:59

Re: How/Where to find .config that were used for kernel on CD?

Post by ehfortin »

Hi,
gapan wrote:

Code: Select all

less /proc/config.gz
I've booted Salix 13.1.1 from the CD and tried this command without success. I'm getting the binary stuff from the config.gz instead of the content. So I guess the command "less" provided on the CD (busybox) is not able to uncompress the file by itself. I've not looked at alternative yet but I already noticed that gunzip is not available (there is not much available under busybox).

However, I can confirm that the file config.gz is present so I should be able to get the config from there once I uncompress it.

Thank you.

ehfortin
User avatar
gapan
Salix Wizard
Posts: 6362
Joined: 6. Jun 2009, 17:40

Re: How/Where to find .config that were used for kernel on CD?

Post by gapan »

Oh, I thought you were using the liveCD. If you're using the standard installation CD run:

Code: Select all

cat /proc/config.gz | gzip -d
Image
Image
ehfortin
Posts: 4
Joined: 27. Sep 2010, 23:59

Re: How/Where to find .config that were used for kernel on CD?

Post by ehfortin »

That made it. Very cool.

I thought it could be different with the LiveCD but... I had none in hand so I've tried with what I had :)

Thanks.

ehfortin
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: How/Where to find .config that were used for kernel on CD?

Post by thenktor »

gapan wrote:

Code: Select all

cat /proc/config.gz | gzip -d
Is zcat not on the install cd?
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Post Reply