Preheat a grill. Season onions with salt and pepper and brush with oil. In a small saucepan combine beer and mustard and bring to a boil. Add pastrami and simmer for 3 minutes. Grill onions on both sides and toast bread on a cooler part of the grill. When all ingredients are heated, prepare sandwich.