[Bug 1780598] [NEW] grub does not allow to specify recovery-only kernel options
YS1
1780598 at bugs.launchpad.net
Sun Jul 8 07:14:36 UTC 2018
Public bug reported:
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
** Affects: grub2 (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 bionic
** Patch added: "grub-mkconfig.patch"
https://bugs.launchpad.net/bugs/1780598/+attachment/5160954/+files/grub-mkconfig.patch
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1780598
Title:
grub does not allow to specify recovery-only kernel options
Status in grub2 package in Ubuntu:
New
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1780598/+subscriptions
More information about the foundations-bugs
mailing list