[LU-15652] Debian dkms install failure Created: 16/Mar/22  Updated: 06/Jul/22  Resolved: 06/Jul/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.16.0, Lustre 2.15.1

Type: Bug Priority: Minor
Reporter: Shaun Tancheff Assignee: Shaun Tancheff
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by LU-15972 '--disable-utils' makes build of 2.15... Open
Story Points: 1
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Debian kernel package splits '-arch' and '-common' packages.
To configure lustre:
--with-linux=<path-to-common> --with-linux-obj=<path-to-arch>
However the dkms attempts to re-build modules with:

sh autogen.sh && ./configure --with-linux=/lib/modules/5.10.0-0.bpo.9-amd64/build --with-linux-obj=/lib/modules/5.10.0-0.bpo.9-amd64/build --disable-server --disable-quilt --disable-dependency-tracking --disable-doc --disable-utils --disable-iokit --disable-snmp --disable-tests --enable-quota --with-kmp-moddir=updates && make

Which fails.

Resolve the symlink /lib/modules/5.10.0-0.bpo.9-amd64/build

$ ls -l /lib/modules/5.10.0-0.bpo.9-amd64/build 
lrwxrwxrwx 1 root root 43 Oct 10 12:07 /lib/modules/5.10.0-0.bpo.9-amd64/build -> /usr/src/linux-headers-5.10.0-0.bpo.9-amd64/

and check for the parallel common directory /usr/src/linux-headers-5.10.0-0.bpo.9-common/, if it exists update the path to the kernel headers.



 Comments   
Comment by Gerrit Updater [ 16/Mar/22 ]

"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/46836
Subject: LU-15652 build: On Debian detect -common kernel headers
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: cd7b46a2e0b41cf2b0c024b7ef8fa97cb6f44eca

Comment by Gerrit Updater [ 24/Jun/22 ]

"Jian Yu <yujian@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/47758
Subject: LU-15652 build: On Debian detect -common kernel headers
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: 83038114930be3914d9932e43a0d7ce4e3eefc91

Comment by Gerrit Updater [ 06/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/46836/
Subject: LU-15652 build: On Debian detect -common kernel headers
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 85a6eebeca1e1efb5bb9c3e737ab1978f8aca741

Comment by Gerrit Updater [ 06/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47758/
Subject: LU-15652 build: On Debian detect -common kernel headers
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: ce54c11e0b651f42defa3283015d407bd6fd50aa

Generated at Sat Feb 10 03:20:10 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.