[Bug 1871186] [NEW] grub-mkconfig prefers /etc/default/grub.d settings

Andrey Bondarenko abondarenko at users.sourceforge.net
Mon Apr 6 18:21:59 UTC 2020


Public bug reported:

Since the fix for bug 901600 was commited, setting in /etc/default/grub
now can be overiden by /etc/default/grub.d. It helps developers to make
customized images, but it can really blows up the brain to the rest
users.

I've lost an hour trying to understand why grub ignores my GRUB_TIMEOUT
settings, until I found hostile file 50-cloudimg-settings.cfg, that
silently overrides my setting. I think such behaviour violates simple
principle — user settings must have the higest precedence.

I understand that changing this behaviour, may break a lot of code. So
please at least add BIG RED BANNER to /etc/default/grub with warning:
before changing something in the file, check all the files in
/etc/default/grub.d for conflicting settings, because they have higher
precedence.

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

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

Title:
  grub-mkconfig prefers /etc/default/grub.d settings

Status in grub2 package in Ubuntu:
  New

Bug description:
  Since the fix for bug 901600 was commited, setting in
  /etc/default/grub now can be overiden by /etc/default/grub.d. It helps
  developers to make customized images, but it can really blows up the
  brain to the rest users.

  I've lost an hour trying to understand why grub ignores my
  GRUB_TIMEOUT settings, until I found hostile file 50-cloudimg-
  settings.cfg, that silently overrides my setting. I think such
  behaviour violates simple principle — user settings must have the
  higest precedence.

  I understand that changing this behaviour, may break a lot of code. So
  please at least add BIG RED BANNER to /etc/default/grub with warning:
  before changing something in the file, check all the files in
  /etc/default/grub.d for conflicting settings, because they have higher
  precedence.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1871186/+subscriptions



More information about the foundations-bugs mailing list