diff mbox series

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

Message ID 20211109213522.764575-5-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. 9, 2021, 9:35 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_stable/ubuntu_ltp_stable.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/ubuntu_ltp_stable/ubuntu_ltp_stable.py b/ubuntu_ltp_stable/ubuntu_ltp_stable.py
index c4626609..132760e0 100644
--- a/ubuntu_ltp_stable/ubuntu_ltp_stable.py
+++ b/ubuntu_ltp_stable/ubuntu_ltp_stable.py
@@ -46,7 +46,7 @@  class ubuntu_ltp_stable(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 + '*')
+            pgks.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)