[PATCH 2/7] UBUNTU: SAUCE: ubuntu_ltp: Install the linux-modules-extra package matching the running kernel
Francis Ginther
francis.ginther at canonical.com
Tue Nov 9 21:35:17 UTC 2021
Install the linux-modules-extra package matching the running kernel
instead of doing a wildcard match on the kernel flavour. The wildcard
may match packages that are uninstallable.
Signed-off-by: Francis Ginther <francis.ginther at canonical.com>
---
ubuntu_ltp/ubuntu_ltp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ubuntu_ltp/ubuntu_ltp.py b/ubuntu_ltp/ubuntu_ltp.py
index 78137809..4a824749 100644
--- a/ubuntu_ltp/ubuntu_ltp.py
+++ b/ubuntu_ltp/ubuntu_ltp.py
@@ -45,7 +45,7 @@ class ubuntu_ltp(test.test):
pkgs.append(gcc)
if self.flavour in ['aws', 'azure', 'azure-fips', 'gcp', 'gcp-fips', 'gke', 'gkeop']:
- pkgs.append('linux-modules-extra-' + self.flavour + '*')
+ pkgs.append('linux-modules-extra-' + platform.uname()[2])
cmd = 'yes "" | DEBIAN_FRONTEND=noninteractive apt-get install --yes --force-yes ' + ' '.join(pkgs)
self.results = utils.system_output(cmd, retain_output=True)
--
2.30.2
More information about the kernel-team
mailing list