Each finite $p$-group $H$ may be embedded in the Frattini subgroup of an appropriate $p$-group $G$ (for example, $G=H \wr C_p$; here $d(G)\le d(H)+1$.)

Problem. Is it true that one can choose $G$ so that $d(G)=2$?

Yakov