Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

A question on Ask Ubuntu asks if there's a vanilla kernel for Ubuntu. Its answer is there is a "Mainline" series of kernels for Ubuntu that use vanilla files with Ubuntu configurations.

But how important is the configuration? Is there such a thing as a distribution-agnostic, official vanilla kernel configuration?

share|improve this question

2 Answers 2

The "distribution-agnostic" vanilla kernel would be the one you get using everything with default values. The kernel configuration scripts do have default values for everything. You can get a full set of these and call it "100% pure vanilla" if you generate a config using a kernel from kernel.org and run make config or make menuconfig (without making any changes).

While that is the the most generic thing possible, it is unlikely to be very useful without some configuration (picking the right architecture, making sure it includes enough useful drivers, etc) and it is unlikely to even run if you were to drop it into Ubuntu which expects you to run their customized kernels. For example LVM support used to not be enabled by default but Ubuntu uses it.

I think what Ubuntu means by "mainline" is that no patches are applied, but the normal customized configuration files would still be applied so it would at least successfully boot. What it might be lacking is any custom bug-fixing or hardware support or whatever else they patch in that hasn't been added to the upstream kernel yet.

share|improve this answer
1  
Yeah, I've done that before and it generates a tiny (and fairly useless) kernel. I also agree with your meaning of "mainline". It's stock code but with their config. –  Oli Jul 28 '11 at 12:40
    
Ubuntu does not use LVM by default –  psusi Jul 29 '11 at 14:01

To get (or restore) the default config for any kernel, just run make defconfig in your kernel directory. For more options, issue make help.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.