  We study deformation theory of mod $p$ Galois representations of $p$-adic
fields with values in generalised reductive group schemes, such as $L$-groups
and $C$-groups. We show that the corresponding deformation rings are complete
intersections of expected dimension. We determine their irreducible components
in many cases and show that they and their special fibres are normal and
complete intersection.
