Message ID | 20211109213522.764575-8-francis.ginther@canonical.com |
---|---|
State | New |
Headers | show |
Series | Install the linux-modules-extra package matching the running kernel | expand |
diff --git a/ubuntu_zram_smoke_test/ubuntu_zram_smoke_test.py b/ubuntu_zram_smoke_test/ubuntu_zram_smoke_test.py index 49968526..99c828fa 100644 --- a/ubuntu_zram_smoke_test/ubuntu_zram_smoke_test.py +++ b/ubuntu_zram_smoke_test/ubuntu_zram_smoke_test.py @@ -21,7 +21,7 @@ class ubuntu_zram_smoke_test(test.test): flavour = re.split('-\d*-', platform.uname()[2])[-1] if flavour in ['aws', 'azure', 'azure-fips', 'gcp', 'gcp-fips', 'gke', 'gkeop']: - pkgs.append('linux-modules-extra-' + flavour + '*') + pkgs.append('linux-modules-extra-' + platform.uname()[2]) if pkgs: cmd = 'yes "" | DEBIAN_FRONTEND=noninteractive apt-get install --yes --force-yes ' + ' '.join(pkgs)
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_zram_smoke_test/ubuntu_zram_smoke_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)