[Unionfs] modprobe error on CentOS 5.2 (RHEL 5.2)

Ian Kent raven at themaw.net
Thu Jan 29 20:36:07 EST 2009


On Fri, 2009-01-30 at 09:13 +0900, Ian Kent wrote:
> > 
> > 
> > Am i doing some step incorrectly or missing something here ? Or ( as
> > Dave Miller suggested) , we need a new patch release for RHEL 5.2
> > ( 2.6.18-92.el5 ) , as Dave was sure Redhat has released a new kernel
> > after Erez gave that last patch for RHEL
> > (unionfs-2.4_for_2.6.18-RHEL5.
> > diff) ?
> 
> That process sounds ok but if it wasn't, such as you didn't add the
> patch to the spec file before the build, then you shouldn't have ended
> up with a module at all. I'll check the patch applies, maybe build a
> kernel and see. Having time to do this is a problem so you'll need to
> wait a while.

I've done a quick check.

The patch applies cleanly to rev 92.
That's a good sign but not an absolute guarantee.

Then try this.

I haven't tested it, other than to get to the point of starting the
build so there may be other things I've missed.

1) Remove the kernel and modules of previous attempts so you don't get
confusing errors not related to this kernel build. Please make sure you
don't remove your actual rev 92 kernel and only remove stuff you've
built and installed (rpm -e perhaps) or copied!!!!

2) Copy the uncompressed (maybe you don't need to uncompress it, I don't
know) unionfs-2.4_for_2.6.18-RHEL5.diff to the rpm build tree SOURCES
directory.

2) Update the kernel configuration used for the rpm build (I'm just
updating the i686 arch configs here but you would need to do similar for
other arch, such as x86_64 or if you want to enable other options) using
something like what is contained in the attached
unionfs-rhel-srpm-config.patch.

3) Set the buildid and add the patch to the kernel build spec file with
something like what is contained in the attached
unionfs-rhel-kernel-srpm-spec.patch.

4) Use "rpmbuild -bb kernel-2.6.spec" to build the kernel-headers
package (but maybe you don't really need this, your chioce). Not sure if
this will actually be needed if your doing this for x86_64, all the
packages might get built on x86_64 with this alone.

5) Use "rpmbuild -bb --target=i686 kernel-2.6.spec" to build the kernel
rpms (or other target as needed).

Then hope that the build completes without error and install as needed!
Note that you should use the "-i" for install not the "-U" for update as
rpm will happily replace your current kernel with one that might not
work if you tell it to update instead of install.

Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unionfs-rhel-srpm-config.patch
Type: text/x-patch
Size: 1564 bytes
Desc: not available
Url : http://www.fsl.cs.sunysb.edu/pipermail/unionfs/attachments/20090130/29d0dbe5/unionfs-rhel-srpm-config-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unionfs-rhel-kernel-srpm-spec.patch
Type: text/x-patch
Size: 1024 bytes
Desc: not available
Url : http://www.fsl.cs.sunysb.edu/pipermail/unionfs/attachments/20090130/29d0dbe5/unionfs-rhel-kernel-srpm-spec-0001.bin


More information about the unionfs mailing list