[SRU] grub can no longer detect kernels after ubuntustudio-lowlatency-settings is uninstalled

Bug #1892949 reported by Erich Eickmeyer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntustudio-default-settings (Ubuntu)
Fix Released
High
Erich Eickmeyer
Focal
Fix Released
High
Erich Eickmeyer
Groovy
Fix Released
High
Erich Eickmeyer

Bug Description

[Impact]

 * When ubuntustudio-lowlatency-settings is installed, it disables the executable
   bit on /etc/grub.d/10_linux because it installs a replacement file at
   /etc/grub.d/09_lowlatency in order to ensure that the lowlatency kernel is
   always default when both generic and lowlatency are installed.

 * ubuntustudio-lowlatency-settings does not contain a postrm script to reenable
   executability (+x) of /etc/grub.d/10_linux after it has been removed, thus
   rendering grub unable to detect any installed kernels, potentialy breaking
   installations and causing people's systems unable to boot.

[Test Case]

 * Install Ubuntu Studio or add ubuntustudio-lowlatency-settings to any
   installation

 * Uninstall ubuntustudio-lowalatency-settings, run update-grub.

 * Reboot. Kernels will be unavailable for boot. This is further proven prior to
   this when update-grub is run as it will not detect any installed kernels.

[Regression Potential]

 * The only regression this may have is that the .postrm script does not actually
   add +x, but this is highly unlikely as it adds it if the /etc/grub.d/10_linux
   file simply exists, even if the executable bit is already set.

[Other Information]

 * This was recently discovered when I installed the surface-linux kernel on my
   MS Surface Pro 4 and found it unable to boot the custom kernel, as with
   ubuntustudio-lowlatency-settings it was only recognizing the generic and
   lowlatency kernels. Removing ubuntustudio-lowlatency-settings and attempting
   to run update-grub resulted in no kernels detected. Upon investigation,
   I discovered that the +x bit was not set in /etc/grub.d/10_linux.

Changed in ubuntustudio-default-settings (Ubuntu):
status: New → In Progress
Changed in ubuntustudio-default-settings (Ubuntu Focal):
status: New → In Progress
importance: Undecided → High
assignee: nobody → Erich Eickmeyer (eeickmeyer)
description: updated
Changed in ubuntustudio-default-settings (Ubuntu Focal):
status: In Progress → Fix Committed
Changed in ubuntustudio-default-settings (Ubuntu Groovy):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntustudio-default-settings - 20.10.37

---------------
ubuntustudio-default-settings (20.10.37) groovy; urgency=medium

  * add postrm script for ubuntustudio-lowlatency-settings (LP: #1892949)

 -- Erich Eickmeyer <email address hidden> Tue, 25 Aug 2020 18:07:02 -0700

Changed in ubuntustudio-default-settings (Ubuntu Groovy):
status: Fix Committed → Fix Released
Revision history for this message
Chris Halse Rogers (raof) wrote : Proposed package upload rejected

An upload of ubuntustudio-default-settings to focal-proposed has been rejected from the upload queue for the following reason: "Please re-upload with a changelog entry that describes to the user what the update is going to fix.".

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

There is a new upload of this package awaiting approval.

Changed in ubuntustudio-default-settings (Ubuntu Focal):
status: Fix Committed → In Progress
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Please test proposed package

Hello Erich, or anyone else affected,

Accepted ubuntustudio-default-settings into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/ubuntustudio-default-settings/20.04.2.2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in ubuntustudio-default-settings (Ubuntu Focal):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Brian Murray (brian-murray) wrote : [ubuntustudio-default-settings/focal] verification still needed

The fix for this bug has been awaiting testing feedback in the -proposed repository for focal for more than 90 days. Please test this fix and update the bug appropriately with the results. In the event that the fix for this bug is still not verified 15 days from now, the package will be removed from the -proposed repository.

tags: added: removal-candidate
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Any luck in verifying this? It seems important enough to get it in, if possible.

Revision history for this message
Ross Gammon (rosco2) wrote :

I think I may have a spare machine that I can play with after I finish setting up a new one later today.
I could do the test on this machine, but I really need it operational!
Hopefully I will report back in the next day or so.

Revision history for this message
Erich Eickmeyer (eeickmeyer) wrote :

Actually, I totally spaced this. I did verify it's working fine in Focal using the fix. I just forgot to mark verification done.

tags: added: verification-done verification-done-focal
removed: removal-candidate verification-needed verification-needed-focal
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntustudio-default-settings - 20.04.2.2

---------------
ubuntustudio-default-settings (20.04.2.2) focal; urgency=medium

  * Ensure removing ubuntustudio-lowlatency-settings package
    doesn't remove all kernels from GRUB boot menu (LP: #1892949)

 -- Erich Eickmeyer <email address hidden> Tue, 25 Aug 2020 18:12:28 -0700

Changed in ubuntustudio-default-settings (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for ubuntustudio-default-settings has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.