Comment 1 for bug 1291434

Revision history for this message
Nathan Stratton Treadway (nathanst) wrote :

Also note that another set up duplicates is added to the line each time the grub-pc.postinst script is run -- on one of my Trusty systems I now see:
  GRUB_CMDLINE_LINUX_DEFAULT="nomdmonddf nomdmonisw nomdmonddf nomdmonisw nomdmonddf nomdmonisw"

(I see that this value is also saved in the debconf database:
# debconf-show grub-pc | grep linux_cmdline_default
* grub2/linux_cmdline_default: nomdmonddf nomdmonisw nomdmonddf nomdmonisw nomdmonddf nomdmonisw
)

I tracked the source of these two keywords to /etc/default/grub.d/dmraid2mdadm.cfg (part of the mdadm package), which contains the single line:
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT nomdmonddf nomdmonisw"

Perhaps that script needs to be expanded to check the current value of $GRUB_CMDLINE_LINUX_DEFAULT and only add the new keywords if they aren't already included?

Nathan