modules-extra packages not installed during ADT testing for some kernels
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
The modules-extra packages for derivative kernels (maybe just some of them) do not get installed during ADT testing, despite what looks like an attempt to do so with this setup-command:
--setup-commands 'apt-get install -y ^kernel-
This results in nothing being found:
146s Reading package lists...
155s Building dependency tree...
155s Reading state information...E: Unable to locate package ^kernel-
155s E: Couldn't find any package by glob '^kernel-
155s E: Couldn't find any package by regex '^kernel-
155s Reading package lists...
155s Building dependency tree...
155s Reading state information...
155s
155s E: Unable to locate package ^linux-
155s E: Couldn't find any package by glob '^linux-
155s E: Couldn't find any package by regex '^linux-
When testing linux-generic, the modules-extra package is installed as a result of a dependency from linux-image-
$ apt-cache show linux-image-generic
…
Depends: linux-image-
But the aws kernel is different:
$ apt-cache show linux-image-aws
…
Depends: linux-image-
$ apt-cache show linux-image-
…
Depends: kmod, linux-base (>= 4.5ubuntu1~
The only thing which depends on the modules-extra package, is what looks like a meta package:
$ apt-cache rdepends linux-modules-
linux-modules-
Reverse Depends:
linux-
linux-
$ apt-cache rdepends linux-modules-
linux-modules-
Reverse Depends:
$ apt-cache rdepends linux-modules-
linux-modules-
Reverse Depends:
This meta package does contain a “Provides”, but it does not match what the ADT setup command is trying to install:
$ apt-cache show linux-modules-
Package: linux-modules-
…
Provides: kernel-
Depends: linux-modules-
The difference is `^kernel-
I do not have a list of kernels that show this behavior. Just looked at focal:linux-