diff mbox series

[5/7] UBUNTU: SAUCE: ubuntu_ltp_syscalls: Install the linux-modules-extra package matching the running kernel

Message ID 20211104130146.1537314-6-francis.ginther@canonical.com
State New
Headers show
Series Install the linux-modules-extra package matching the running kernel | expand

Commit Message

Francis Ginther Nov. 4, 2021, 1:01 p.m. UTC
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@canonical.com>
---
 ubuntu_ltp_syscalls/ubuntu_ltp_syscalls.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/ubuntu_ltp_syscalls/ubuntu_ltp_syscalls.py b/ubuntu_ltp_syscalls/ubuntu_ltp_syscalls.py
index 7ea656f1..c51e39b2 100644
--- a/ubuntu_ltp_syscalls/ubuntu_ltp_syscalls.py
+++ b/ubuntu_ltp_syscalls/ubuntu_ltp_syscalls.py
@@ -51,9 +51,8 @@  class ubuntu_ltp_syscalls(test.test):
         gcc = 'gcc' if arch in ['ppc64le', 'aarch64', 's390x', 'riscv64'] else 'gcc-multilib'
         pkgs.append(gcc)
 
-        if self.flavour in ['aws', 'azure', 'azure-fips', 'gcp', 'gcp-fips', 'gke', 'gkeop']:
-            if not (self.flavour == 'aws' and self.series == 'trusty'):
-                pkgs.append('linux-modules-extra-' + self.flavour + '*')
+        if not (self.flavour == 'aws' and self.series == 'trusty'):
+            pkgs.append('linux-modules-extra-' + platform.uname()[2])
         if self.flavour not in ['kvm']:
             pkgs.append('nfs-kernel-server')
         if self.series not in ['trusty']: