Message ID | 20211109213522.764575-4-francis.ginther@canonical.com |
---|---|
State | New |
Headers | show |
Series | Install the linux-modules-extra package matching the running kernel | expand |
diff --git a/ubuntu_ltp_controllers/ubuntu_ltp_controllers.py b/ubuntu_ltp_controllers/ubuntu_ltp_controllers.py index 3990164b..0ff3528e 100644 --- a/ubuntu_ltp_controllers/ubuntu_ltp_controllers.py +++ b/ubuntu_ltp_controllers/ubuntu_ltp_controllers.py @@ -53,7 +53,7 @@ class ubuntu_ltp_controllers(test.test): 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 + '*') + pgks.append('linux-modules-extra-' + platform.uname()[2]) if self.flavour not in ['kvm']: pkgs.append('nfs-kernel-server') if self.series not in ['trusty']:
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_controllers/ubuntu_ltp_controllers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)