Heat a large heavy bottomed pot or Dutch oven over medium high heat. Add the oil and the mustard seeds. When the mustard seeds have finished popping, add the onions with a pinch of salt. Cook, stirring occasionally, until brown, about 10-15 minutes. Add the garlic and ginger with another pinch of salt and cook for another 5 minutes. Deglaze the pan, scraping up any browned bits, with the cider vinegar.