I thought of a further edge case:

8. What happens if reimaging from the OEM image, and then upgrading to
the updates pocket all at once, including the update that triggered this
bug together with this for it? Which postinst will run first? If not
deterministic, and this one runs first, will that cause a problem? Do we
need a Breaks clause for ordering purposes? Or is it OK to remove
/etc/default/grub.d/oem-flavour.cfg _before_ the bug is triggered?

-- 
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/2083657

Title:
  Remove oem-flavour.cfg for the OEM kernel retirement

Status in OEM Priority Project:
  In Progress
Status in ubuntu-drivers-common package in Ubuntu:
  Won't Fix
Status in ubuntu-drivers-common source package in Jammy:
  In Progress

Bug description:
  [ Impact ]

   * This issue affects all Ubuntu OEM preloaded systems that are still 
utilizing the OEM kernel, particularly those equipped with NVIDIA graphics 
drivers.
   * Systems may fail to boot properly due to an outdated OEM kernel 
conflicting with newer NVIDIA drivers, leading to a black screen on reboot.

  [ Test Plan ]

   * To verify the fix, ensure that the file 
`/etc/default/grub.d/oem-flavour.cfg` is successfully removed from the affected 
system after applying the update.
   * Additionally, after the system reboots, check that it boots into the 
general HWE kernel rather than the OEM kernel.

  [ Where problems could occur ]

   * Removing `/etc/default/grub.d/oem-flavour.cfg` may cause systems relying 
on the OEM kernel for specific hardware compatibility to lose access to certain 
OEM-specific optimizations.
   * There is a low risk that after removing the OEM kernel, some hardware 
features may not function as expected if the general HWE kernel does not fully 
support them.

  [ Other Info ]

   * This patch is targeted only for Ubuntu 22.04 and its associated OEM 
kernels.
   * The issue is specific to systems using NVIDIA drivers in conjunction with 
an outdated OEM kernel, which conflicts with updates to the HWE kernel and 
NVIDIA packages.

  1) The release of Ubuntu you are using, via 'lsb_release -rd' or System -> 
About $ lsb_release -rd
  Description:  Ubuntu 22.04.4 LTS
  Release:      22.04
  $ ubuntu-report show | grep DCD
      "DCD": "canonical-oem-sutton-jammy-amd64-20240606-874"

  2) The version of the package you are using, via 'apt-cache policy pkgname' 
or by checking in Software Center
  $ apt-cache policy ubuntu-drivers-common
  ubuntu-drivers-common:
    Installed: 1:0.9.6.2~0.22.04.6
    Candidate: 1:0.9.6.2~0.22.04.7
    Version table:
       1:0.9.6.2~0.22.04.7 500
          500 http://tw.archive.ubuntu.com/ubuntu jammy-updates/main amd64 
Packages
   *** 1:0.9.6.2~0.22.04.6 100
          100 /var/lib/dpkg/status
       1:0.9.6.1 500
          500 http://tw.archive.ubuntu.com/ubuntu jammy/main amd64 Packages

  3) What you expected to happen

   * The system should seamlessly upgrade NVIDIA drivers and the HWE
  kernel without breaking the boot process. The system should boot into
  the latest supported HWE kernel without encountering compatibility
  issues with the NVIDIA drivers.

  4) What happened instead

   * After unattended-upgrades, the system rebooted into the OEM kernel,
  which is outdated and incompatible with the new NVIDIA drivers. As a
  result, the screen remained black upon reboot.

  We need to remove /etc/default/grub.d/oem-flavour.cfg to avoid the
  system booting from deprecated OEM kernels.

To manage notifications about this bug go to:
https://bugs.launchpad.net/oem-priority/+bug/2083657/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to