Get exact running kernel's source
Posted: 2021-12-03 15:26
Hi,
I am trying to compile DRBD with my kernel source. I ran `apt-get source linux`, `apt-get install linux-source` I tried them with `-$(uname -r)` at the end but none of them give me the exact source.
cat /proc/version and uname -r give me the following version: Linux version 4.19.0-18-amd64
all my source download attempts gave me version 4.19.208 or 4.19.194. Once I build DRBD with those and run make install, drbd.ko ends up in /lib/modules/4.19.208/... and not /lib/modules/4.19.0-18-amd64/...
I tried to copy the build to /lib/modules/4.19.0-18-amd64, but then modprobe drbd throws an error
root@linux-vm:~# modprobe drbd
modprobe: ERROR: could not insert 'drbd': Exec format error
Is there no way to get exact sources for a specific debian release ?
Thank you,
Gab
I am trying to compile DRBD with my kernel source. I ran `apt-get source linux`, `apt-get install linux-source` I tried them with `-$(uname -r)` at the end but none of them give me the exact source.
cat /proc/version and uname -r give me the following version: Linux version 4.19.0-18-amd64
all my source download attempts gave me version 4.19.208 or 4.19.194. Once I build DRBD with those and run make install, drbd.ko ends up in /lib/modules/4.19.208/... and not /lib/modules/4.19.0-18-amd64/...
I tried to copy the build to /lib/modules/4.19.0-18-amd64, but then modprobe drbd throws an error
root@linux-vm:~# modprobe drbd
modprobe: ERROR: could not insert 'drbd': Exec format error
Is there no way to get exact sources for a specific debian release ?
Thank you,
Gab