LU-12019 build: remove global depmod.d conf from debs Lustre should not be creating a global depmod.d configuration file that affects the load order of all modules installed on the system. Yet, Lustre has a depmod.d configuration file that attempts to mirror the default configuration (the man page is identical for Debian): https://manpages.ubuntu.com/manpages/xenial/en/man5/depmod.d.5.html "By default, depmod will give a higher priority to a directory with the name updates using this built-in search string: "updates built-in" but more complex arrangements are possible and are used in several popular distributions." However, when we switched from: search updates built-in to: search updates/kernel built-in Ubuntu depmod was forced to prefer build-in modules, since the modules are not in `updates/kernel` as in Debian. If a user has third party modules installed on their system, this could make Ubuntu load the wrong module by default. This patch removes the lustre.conf depmod.d file. By leaving these load-order decisions to the distribution, this patch addresses the regression on Ubuntu. Fixes: 7ea4e0c ("LU-12019 build: Recognize Debian Kernel and set KMP dir") Test-Parameters: trivial clientdistro=ubuntu2204 Signed-off-by: Timothy Day <timday@amazon.com> Change-Id: I96fe1c0e64c48d045d46d62a10e8c8bd6ad2cb7d Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54025 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: James Simmons <jsimmons@infradead.org> Reviewed-by: Thomas Stibor <thomas@stibor.net> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-6142 misc: update headers in config, debian, rpm Update the file header to have the SPDX license and use the standard format. Fix minor style issues with comments in a few files. Remove `dnl` from m4 files. Files that are uncertain are left as NOASSERTION for the license identifier. This makes no claim about the file. It is used to track files so they can be addressed later. https://spdx.github.io/spdx-spec/v2-draft/package-information/#75-package-supplier-field Test-Parameters: trivial Signed-off-by: Timothy Day <timday@amazon.com> Change-Id: I212ce05a4292bbb0d71372d9d75880ce45a219f3 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52106 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-12019 build: Recognize Debian Kernel and set KMP dir Recognize Debian kernel and make sure kernel module package (KMP) directory matches with KMP_MODDIR of Ubuntu and the Debian building package system. Change-Id: Ia3570500ed538c5d3c7a002eafddfc715efbf580 Test-Parameters: trivial clientdistro=ubuntu2204 Signed-off-by: Thomas Stibor <t.stibor@gsi.de> Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51066 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Thomas Stibor <thomas@stibor.net> Reviewed-by: Jian Yu <yujian@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-14707 tests: Prefer #!/bin/bash Change remaining #!/bin/sh to use bash. Add a warning to the git-hook about using sh in shebangs. Using bash allows scripts to freely use bash-isms and lowers the risks of bugs on Debian based platforms. Also, change remaining callers to use bash rather than sh. Signed-off-by: Timothy Day <timday@amazon.com> Change-Id: I10f3e8f71435c38cfc1650dd13168d7ed5d3b31f Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49479 Tested-by: jenkins <devops@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com> Reviewed-by: Oleg Drokin <green@whamcloud.com> Reviewed-by: Andreas Dilger <adilger@whamcloud.com> Reviewed-by: jsimmons <jsimmons@infradead.org>
Revert "LU-12019 build: Recognize Debian Kernel and set KMP dir" This reverts commit 230d4500d5a9dfada392199d77fc413382f24750. Revert this commit because lustre failed to load on MOFED 5.5 See LU-15831 for details Change-Id: I845431ad2126743c1ca9a59d1b56e1a35dbc9e38 Signed-off-by: Minh Diep <mdiep@whamcloud.com> Reviewed-on: https://review.whamcloud.com/47238 Tested-by: jenkins <devops@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com> Tested-by: Oleg Drokin <green@whamcloud.com>
LU-12019 build: Recognize Debian Kernel and set KMP dir Recognize Debian kernel and make sure kernel module package (KMP) directory matches with KMP_MODDIR of Ubuntu and the Debian building package system. Test-Parameters: clientdistro=ubuntu1804 Signed-off-by: Thomas Stibor <t.stibor@gsi.de> Change-Id: Iaf3635af6a624c9395db3f891d31413cb9e57b92 Reviewed-on: https://review.whamcloud.com/34329 Tested-by: Jenkins Reviewed-by: James Simmons <uja.ornl@yahoo.com> Reviewed-by: Nathaniel Clark <nclark@whamcloud.com> Tested-by: Maloo <maloo@whamcloud.com> Reviewed-by: Oleg Drokin <green@whamcloud.com>
LU-8869 build: Fix building of DEB packages Building DEB packages failed with errors: dh_install: lustre-dev missing files (debian/tmp/usr/lib/*.so.*) and dpkg-checkbuilddeps: Unmet build dependencies. Moreover, signing the DEB packages failed due signing problems of the author listed in debian/changelog. Additionally, latest DEB based distributions ship Lustre modules from kernel staging which can conflict with modules build from upstream. To fix the problem, build modules with configure --with-kmp-moddir=updates and add search order of "search updates built-in" in /etc/depmod.d/lustre.conf Signed-off-by: Thomas Stibor <t.stibor@gsi.de> Change-Id: I02c58103bfaa83b97f5cd207af823fb477e0f0d3 Reviewed-on: https://review.whamcloud.com/23999 Tested-by: Jenkins Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com> Reviewed-by: Bob Glossman <bob.glossman@intel.com> Tested-by: Maloo <hpdd-maloo@intel.com> Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>