Public bug reported: Upstream patch: https://github.com/canonical/ubuntu-drivers- common/pull/113/commits/969f188faef74376cec12d7d09d4180b39106920
[Impact] To ensure users are not running an outdated prebuilt kernel (which could cause compatibility issues if the recommended Nvidia drivers are only built for a more recent kernel version), and to ensure that the user is aware of the implications of the DKMS module usage if running a custom kernel for which DKMS modules would be required, add the following behavior to the "install" and "list" commands (and their variants): If the user is running a kernel version that is not provided by an Ubuntu kernel package, require them to pass --include-dkms to proceed (detected by matching uname -r output against Ubuntu version format, then checking to ensure Ubuntu kernel metapackage is installed) If the user is running an Ubuntu kernel, and any installed Ubuntu kernel metapackages have updates available according to the apt cache, warn them to upgrade before proceeding. It is worth discussing whether we should eventually be more assertive about having the Ubuntu kernel up-to-date, but for now, it is only implemented as a warning. [ Test Plan ] I tested the DKMS error functionality by verifying that the DKMS warning prints on my machine, which is running a custom kernel. I tested the kernel version functionality by adding a PPA with a newer kernel version of the same upgrade path to my machine, then verifying that the kernel version warning prints when my machine's kernel is still on the original version. I observed no regressions when doing a control test on a machine with an up-to-date Ubuntu kernel. [ Where problems could occur ] Since we are introducing functionality that requires users to specify --include-dkms if their kernel is not known to be supported by the prebuilt driver packages, if there are any users with unofficial kernels who have previously been able to run that command without --include- dkms, those users will now have to add --include-dkms. There should not be any known impacts to users running officially supported Ubuntu kernels, though. ** Affects: ubuntu-drivers-common (Ubuntu) Importance: Undecided Assignee: Mitchell Augustin (mitchellaugustin) Status: In Progress ** Changed in: ubuntu-drivers-common (Ubuntu) Assignee: (unassigned) => Mitchell Augustin (mitchellaugustin) ** Changed in: ubuntu-drivers-common (Ubuntu) Status: New => In Progress -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to ubuntu-drivers-common in Ubuntu. https://bugs.launchpad.net/bugs/2109526 Title: [SRU] Implement kernel version check at start of list or install Status in ubuntu-drivers-common package in Ubuntu: In Progress Bug description: Upstream patch: https://github.com/canonical/ubuntu-drivers- common/pull/113/commits/969f188faef74376cec12d7d09d4180b39106920 [Impact] To ensure users are not running an outdated prebuilt kernel (which could cause compatibility issues if the recommended Nvidia drivers are only built for a more recent kernel version), and to ensure that the user is aware of the implications of the DKMS module usage if running a custom kernel for which DKMS modules would be required, add the following behavior to the "install" and "list" commands (and their variants): If the user is running a kernel version that is not provided by an Ubuntu kernel package, require them to pass --include-dkms to proceed (detected by matching uname -r output against Ubuntu version format, then checking to ensure Ubuntu kernel metapackage is installed) If the user is running an Ubuntu kernel, and any installed Ubuntu kernel metapackages have updates available according to the apt cache, warn them to upgrade before proceeding. It is worth discussing whether we should eventually be more assertive about having the Ubuntu kernel up-to-date, but for now, it is only implemented as a warning. [ Test Plan ] I tested the DKMS error functionality by verifying that the DKMS warning prints on my machine, which is running a custom kernel. I tested the kernel version functionality by adding a PPA with a newer kernel version of the same upgrade path to my machine, then verifying that the kernel version warning prints when my machine's kernel is still on the original version. I observed no regressions when doing a control test on a machine with an up-to-date Ubuntu kernel. [ Where problems could occur ] Since we are introducing functionality that requires users to specify --include-dkms if their kernel is not known to be supported by the prebuilt driver packages, if there are any users with unofficial kernels who have previously been able to run that command without --include-dkms, those users will now have to add --include-dkms. There should not be any known impacts to users running officially supported Ubuntu kernels, though. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/ubuntu-drivers-common/+bug/2109526/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp