[DRBD-user] FC3 - Fedora Kernel Sources

Diego Julian Remolina diego.remolina at ibb.gatech.edu
Mon Apr 3 17:58:52 CEST 2006

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


> On an FC system /lib/modules/`uname -r`/build is a soft link to where 
> the sources are for that kernel.
> i.e. for 2.6.16-1.2069_FC4
> $ ls -l /lib/modules/2.6.16-1.2069_FC4/build
> lrwxrwxrwx  1 root root 47 Mar 28 09:12 
> /lib/modules/2.6.16-1.2069_FC4/build -> 
> ../../../usr/src/kernels/2.6.16-1.2069_FC4-i686
> 

I was not aware of the links to kernel sources from the /lib/modules/`uname -r`/build folders. They 
are also present in RHEL4 and "make" works correctly:

cd /usr/src/drbd-0.7.17
make rpm KDIR=/lib/modules/2.6.9-34.EL/build

correctly compiles drbd and creates the rpms

Thanks to Todd for mentioning it,

Diego

>> Single processor:
>> make rpm KDIR=/usr/src/kernels/2.6.9-34.EL-x86_64
>>
>> SMP kernel:
>> make rpm KDIR=/usr/src/kernels/2.6.9-34.EL-smp-x86_64
>>
>> Since you are using FC4 use the "make rpm" command which will create 
>> drbd rpms for you in: /usr/src/drbd-0.7.17/dist/RPMS/{arch}/
>>
>> Here is an update guide that I use on RHEL4 systems:
>>
>> https://services.ibb.gatech.edu/wiki/index.php/Howto:Updates:DRBD
>>
> 




More information about the drbd-user mailing list