grub does not allow to specify recovery-only kernel options

Bug #1780598 reported by Yann Salmon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
grub2 (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

In /etc/default/grub are two variables that enable customization of kernel options : GRUB_CMDLINE_LINUX_DEFAULT for non-recovery entries and GRUB_CMDLINE_LINUX for all entries (both recovery and non-recovery).

It is not possible to specify kernel options to be used for recovery entries but not regular ones, which in my case is problematic as modesetting parameters are at a contradiction in those cases.

I propose that the GRUB_CMDLINE_LINUX_RECOVERY variable would allow to do so. This requires exporting this variable in the grub-mkconfig script, so that it can be read by the 10_linux script.

There, I propose to keep the usual behaviour when the variable has not been set, and to completely eschew it when the variable is set.

I am reporting here as it appears that upstream grub 10_linux does not have a mechanism for recovery entries at all, so I think it is Ubuntu specific.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: grub-common 2.02-2ubuntu8 [modified: usr/sbin/grub-mkconfig]
Architecture: amd64
SourcePackage: grub2

Revision history for this message
Yann Salmon (yannsalmon) wrote :
Revision history for this message
Yann Salmon (yannsalmon) wrote :
description: updated
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "grub-mkconfig.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in grub2 (Ubuntu):
status: New → Triaged
importance: Undecided → Wishlist
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.