[Bug 1291434] Re: GRUB_CMDLINE_LINUX_DEFAULT contains duplicate options

Nathan Stratton Treadway ubuntu.lp at nathanst.com
Fri Jul 25 05:32:00 UTC 2014


In case there isn't a some better solution, here's a quick attempt at a
patch to the dmraid2mdadm.cfg script so that it only adds the keywords
to the value of GRUB_CMDLINE_LINUX_DEFAULT if it doesn't already contain
them.  That would at least prevent the command line from accumulating
any additional copies of the keywords during  later grub-pc package
upgrades.

This patch doesn't attempt to clean up already-existing extra copies of
the keywords in the line in the /etc/default/grub file.

Also, it only checks for cases where the keywords are found exactly as
they would have been added by this script; I don't know if those two
nomdmon* options are likely enough to have been added in some other
format that it's worth having this script check for them each
independently instead....

Nathan



** Patch added: "avoid adding keywords multiple times"
   https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1291434/+attachment/4162482/+files/dmraid2mdadm.cfg.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/1291434

Title:
  GRUB_CMDLINE_LINUX_DEFAULT contains duplicate options

Status in “grub2” package in Ubuntu:
  Confirmed
Status in “mdadm” package in Ubuntu:
  New

Bug description:
  2014-03-12 - Today's trusty update installed grub-pc 2.02~beta2-7 and
  the linux default params were duplicated

  Instead of this:
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator=deadline nomdmonddf nomdmonisw"
  It wanted to install this:
  GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator=deadline nomdmonddf nomdmonisw nomdmonddf nomdmonisw"

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



More information about the foundations-bugs mailing list