[PATCH 1/7] UBUNTU: SAUCE: ubuntu_kernel_selftests: Install the linux-modules-extra package matching the running kernel

Francis Ginther francis.ginther at canonical.com
Tue Nov 9 21:35:16 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_kernel_selftests/ubuntu_kernel_selftests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
index e6f98082..d0e6dbfb 100644
--- a/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
+++ b/ubuntu_kernel_selftests/ubuntu_kernel_selftests.py
@@ -32,7 +32,7 @@ class ubuntu_kernel_selftests(test.test):
 
         if any(x in self.flavour for x in ['aws', 'azure', 'gcp', 'gke']):
             if not (self.flavour == 'aws' and self.series == 'trusty'):
-                pkgs.append('linux-modules-extra-' + self.flavour + '*')
+                pkgs.append('linux-modules-extra-' + platform.uname()[2])
 
         if self.kv >= 415:
             # extra packages for building bpf tests
-- 
2.30.2




More information about the kernel-team mailing list