LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   [SOLVED] Patching kernel source, cannot find in make menuconfig (unionfs) (https://www.linuxquestions.org/questions/linux-newbie-8/%5Bsolved%5D-patching-kernel-source-cannot-find-in-make-menuconfig-unionfs-775705/)

coffeecoffee 12-14-2009 11:27 PM

[SOLVED] Patching kernel source, cannot find in make menuconfig (unionfs)
 
Hi

I need UnionFS support in my kernel. So I downloaded the .diff patch from the website (aligned for the same kernel number) and did
Code:

patch -p1 << xyz.diff
The whole process seemed to work, with no error messages displayed, and new code for unionfs in the /usr/src/linux/fs directory.

However, when I run make menuconfig, I do not see the new unionfs option. So I tried make oldconfig but it did not prompt for any new options... am I missing a step here?

Any help appreciated,
Thanks

GlennsPref 12-15-2009 02:44 AM

Hi, It's possible your kernel already has the configuration applied, but maybe not selected.

Yes, I agree, make oldconfig should have offered the corrections, but if they are in there already, then you may need to carefully, go through the config.

Keep trying, there may be a package that needs updating, as well.

Regards Glenn

coffeecoffee 12-15-2009 02:51 AM

Quote:

Originally Posted by GlennsPref (Post 3791966)
Hi, It's possible your kernel already has the configuration applied, but maybe not selected.

Yes, I agree, make oldconfig should have offered the corrections, but if they are in there already, then you may need to carefully, go through the config.

Keep trying, there may be a package that needs updating, as well.

Regards Glenn

Thanks for the reply. The kernel I am using is a vanilla kernel, and unionFS definitely isn't part of the standard kernel yet. I did a search through the .config file but the CONFIG_UNION_FS is not found in there.. I think I am doing something wrong. Perhaps its because my kernel has r6 after the kernel version, maybe it is incompatible?

GlennsPref 12-15-2009 02:58 AM

If you are using, or wanting to use the latest kernel, then download it from here.

http://www.kernel.org/

It is vanilla, about 50Mb's and will contain the unionfs, (I've seen it mentioned in 2.6.3xxx)

But you're probably better to wait till your repo comes up with a version that fits.

The problem with most distros now, is they don't keep track of source installs.

That can cause problems later.

Regards Glenn

coffeecoffee 12-15-2009 03:50 AM

Quote:

Originally Posted by GlennsPref (Post 3791991)
If you are using, or wanting to use the latest kernel, then download it from here.

http://www.kernel.org/

It is vanilla, about 50Mb's and will contain the unionfs, (I've seen it mentioned in 2.6.3xxx)

But you're probably better to wait till your repo comes up with a version that fits.

The problem with most distros now, is they don't keep track of source installs.

That can cause problems later.

Regards Glenn

Thanks, however unfortunately unionfs is not included with any standard Linux kernel yet, even the latest. The only way to use unionfs is to patch your existing kernel, or download an already patched one. :/

GlennsPref 12-15-2009 04:10 AM

Fair enough, patch it and see

if you use make xconfig it should be ,,,, available

~sHyLoCk~ 12-15-2009 04:59 AM

Check if your distro has unionfs modules in their repo. Many do. Like Arch.
Also read this nice guide: http://www.linuxchix.org/content/cou...acking/lesson9

coffeecoffee 12-15-2009 05:28 AM

Quote:

Originally Posted by ~sHyLoCk~ (Post 3792094)
Check if your distro has unionfs modules in their repo. Many do. Like Arch.
Also read this nice guide: http://www.linuxchix.org/content/cou...acking/lesson9

Good idea, I will check, thanks!

coffeecoffee 12-15-2009 03:30 PM

figured it out guys: you need to enable config_experimental to be able to see experimental patches like unionfs!!

GlennsPref 12-16-2009 06:56 AM

Glad you found it, I have been scratching myself trying to figure why it is sooo difficult.

Cheers, Glenn, and thanks for the solution.

Please mark your thread as "Solved"


All times are GMT -5. The time now is 07:19 AM.