[Bug 901600] Re: Allow /etc/default/grub overriding via /etc/default/grub.d/

LenWeisberg Len at Weisberg.com
Tue Aug 11 19:08:00 UTC 2015


Correction to my comment #7:
   Only files in /etc/default/grub.d  that end in '.cfg' are read.
All the more reason documentation is needed.

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

Title:
  Allow /etc/default/grub overriding via /etc/default/grub.d/

Status in grub2 package in Ubuntu:
  Fix Released
Status in grub2 source package in Precise:
  Fix Released
Status in grub2 source package in Quantal:
  Fix Released

Bug description:
  [Impact] Various customised images have upgrade problems because they don't have a way to add grub-mkconfig configuration without editing /etc/default/grub directly.
  [Test Case] Check that setting something in /etc/default/grub.d/new-file.cfg affects grub-mkconfig, e.g. by setting GRUB_CMDLINE_LINUX and checking that update-grub causes it to be passed through to /boot/grub/grub.cfg.
  [Regression Potential] I think the main thing is to make sure that nothing goes wrong when /etc/default/grub.d/ is missing.

  Original report follows:

  It would be good to be able to keep the settings in /etc/default/grub
  pristine, and allow overides via /etc/grub.d/.

  The one of most interest is:
  GRUB_DEFAULT=0 -> GRUB_DEFAULT=saved

  Thanks.

  Related bugs:
   * bug 1179940:  cloud-images build process should not modify /etc/default/grub

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



More information about the foundations-bugs mailing list