[PATCH 0/1 H] UBUNTU: [packaging] Make the nvidia abi packages depend on nvidia-kernel-common

Andy Whitcroft apw at canonical.com
Wed Mar 10 09:08:29 UTC 2021


On Tue, Mar 09, 2021 at 05:37:47PM +0100, Alberto Milone wrote:
> Having both the metapackage and the actual binaries depend on a
> specific driver series from userspace, we can prevent cases where
> packages such as linux-modules-nvidia-450-5.4.0-66-generic and
> linux-modules-nvidia-460-5.4.0-66-generic can be installed at the
> same time.
> 
> BugLink: https://bugs.launchpad.net/bugs/1918298
> Signed-off-by: Alberto Milone <alberto.milone at canonical.com>
> 
> Alberto Milone (1):
>   UBUNTU: [packaging] Make the nvidia abi packages depend on nvidia-kernel-common
> 
>  debian/scripts/gen-rules.lrm | 1 +
>  1 file changed, 1 insertion(+)

Note that while this is against H (ie the LRMv4 conversion) this is
needed for all LRM packages.  We are adding a seemingly duplicate tight
dependency on the userspace core.  This is done so that if you install a
different nvidia stream the userspace conflict will push the other core
off and thereby both the meta for the previous stream _and_ the current
modules consuming it.  We need this explicit connection to ensure that
these are pushed off even though they are nominally protected by the
kernel autoremove patterns.  This is all required because the versioned
nvidia packages all express nvidia.ko and who knows what would be loaded
leading to unexpected and possibly inconsistent results.

Once this is sufficiently acked I would propose including it in the
LRMv4 conversion process.

-apw



More information about the kernel-team mailing list