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?
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: CMDLINE_ LINUX_DEFAULT= "nomdmonddf nomdmonisw nomdmonddf nomdmonisw nomdmonddf nomdmonisw"
GRUB_
(I see that this value is also saved in the debconf database: default cmdline_ default: nomdmonddf nomdmonisw nomdmonddf nomdmonisw nomdmonddf nomdmonisw
# debconf-show grub-pc | grep linux_cmdline_
* grub2/linux_
)
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: LINUX_DEFAULT= "$GRUB_ CMDLINE_ LINUX_DEFAULT nomdmonddf nomdmonisw"
GRUB_CMDLINE_
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