Make a syrup by mixing the mustard, salt, turmeric, peppercorns, mustard seed, cloves, ginger, and vinegar (and sugar, if you are using). Simmer together, covered, for 10 minutes, then set aside to steep while preparing the onions. For added flavor, let steep overnight.
Peel the onions, cut in quarters, and slice about ¼