[DRBD-user] make kernel-patch failure with 2.6.13 kernel

Lars Ellenberg Lars.Ellenberg at linbit.com
Mon Sep 12 09:28:05 CEST 2005

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.

/ 2005-09-11 12:08:54 -0700
\ prosolutions at gmx.net:
> > I suggest you _build a module_ (that is just the normal make),
> > and intall that module (the resulting drbd.ko).
> thanks. that is what i will do.  as you suggest, i can just create a
> seperate .deb for it.  the reason for wanting the kernel patch was so
> that i could have it included in the .deb of the patched kernel.

that is what linbit does all the time.
the advantage is, that on a drbd update, you just have to rebuild the drbd
.deb, and apt-get install it, and not the entire kernel .deb.  (actually
we create a "virtual" package that depends on both utils and module)

> > it has not been used by anyone since ages.
> > it is not intended to be used.
> > I am even tempted to remove that target.
> > though it probably would be easy to fix.
> > 
> > you should just build the module.
> > 
> > sorry for reiterating that :)
> > 
> > you do not want to build the "kernel-patch".
> > 
> > you want to build the module, like all of us do.
> > 
> > the kernel-patch target was just a courtesy of mine
> > for people insiting on a monolithic kernel for some reason.
> maybe a mention of this in the INSTALL doc would be helpful, or just
> remove the instructions from there if/until you ever fix it.

see my first mail in this thread:
grep Kconfig_block ChangeLog-2.6.11
  [PATCH] uml: depend on !USERMODE in drivers/block/Kconfig
     ** and drop arch/um/Kconfig_block **

so it still does work for < 2.6.11

and maybe you should have tried to fix it yourself,
was easy, just skip non existing files:

Index: scripts/patch-kernel
--- scripts/patch-kernel	(revision 1946)
+++ scripts/patch-kernel	(working copy)
@@ -118,6 +118,7 @@
 # Bring over the current kernel Kconfig and Makefile
 for f in drivers/block/{Kconfig,Makefile} arch/um/Kconfig_block ; do
+	test -e $KERNEL/$f || continue
 	cp -a $KERNEL/$f $KERNEL_BASE/$f
 	cp -a $KERNEL/$f $DRBD_BASE/$f
@@ -138,6 +139,7 @@
 #	}'
 for f in drivers/block/Kconfig arch/um/Kconfig_block ; do
+	test -e $KERNEL_BASE/$f || continue
 	grep drbd/ $DRBD_BASE/$f >/dev/null && continue
 	patch_Kconfig < $KERNEL_BASE/$f > $DRBD_BASE/$f

you then have to apply that patch and reconfigure the patched kernel
source (enable DRBD); though, I did not really try to build that kernel
then, so there may be other things missing.


please use the "List-Reply" function of your email client.
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, A-1120 Vienna/Europe   http://www.linbit.com :

More information about the drbd-user mailing list