Comment 3 for bug 1291434

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

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