Cook rice with salt and sufficient quantity of water , until 3/4 done.Drain and keep aside.Heat oil/ghee in a pan.Add cloves,cardamom,bay leaf and cinnamon,Saute till fragrant.Now add onion and saute until it turns translucent.