Message ID | 20211109213522.764575-2-francis.ginther@canonical.com |
---|---|
State | New |
Headers | show |
Series | Install the linux-modules-extra package matching the running kernel | expand |
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
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_kernel_selftests/ubuntu_kernel_selftests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)