[Bug 562832] Re: module drbd8 update kernel from 2.6.32-16 to 2.6.32-20

Gaëtan Ferez gferez at citic74.fr
Mon Apr 19 11:24:57 BST 2010


Hi,

I search a reason of this problem, and I found something, when dkms
launch the drbd module compilation with make command, the Makefile of
drbd take the kernel source dir of 2.6.32-16-generic :

DKMS make.log for drbd8-8.3.7 for kernel 2.6.32-21-generic (i686)
lundi 19 avril 2010, 11:04:01 (UTC+0200)
make: entrant dans le répertoire « /var/lib/dkms/drbd8/8.3.7/build/drbd »

    Calling toplevel makefile of kernel source tree, which I believe is in
    KDIR=/lib/modules/2.6.32-16-generic/build

test -f ../scripts/adjust_drbd_config_h.sh && \
	 KDIR=/lib/modules/2.6.32-16-generic/build O= /bin/bash ../scripts/adjust_drbd_config_h.sh

but dkms launch this command : 
make KERNELRELEASE=2.6.32-21-generic -C drbd KERNELDIR=/lib/modules/2.6.32-21-generic/build

I looked in the Makefile of drbd module.We have this line with research
the KDIR :

  # for some reason some of the commands below only work correctly in bash,
  # and not in e.g. dash. I'm too lazy to fix it to be compatible.
  SHELL=/bin/bash

  DRBDSRC := $(shell pwd)
  export DRBDSRC

  # to be overridden on command line:
  PREFIX := /
  ifneq ($(wildcard ../build-for-uml),)
    #### for Philipp's convenience :)
    ARCH_UM := "ARCH=um"
    KDIR := /usr/src/linux-um
  else
    ifeq ($(wildcard /lib/modules/$(shell uname -r)/source),)
      KDIR := /lib/modules/$(shell uname -r)/build
    else
      KDIR := /lib/modules/$(shell uname -r)/source
      ifneq ("$(origin KDIR)", "command line")
        ifneq ($(wildcard /lib/modules/$(shell uname -r)/build),)
          O := /lib/modules/$(shell uname -r)/build
        endif
      endif
    endif
  endif

-- 
module drbd8 update kernel from 2.6.32-16 to 2.6.32-20
https://bugs.launchpad.net/bugs/562832
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to drbd8 in ubuntu.



More information about the Ubuntu-server-bugs mailing list