This question already has an answer here:
I'll be flying from Sweden to Germany, and back, so within the Schengen area. Only problem is that the only form of ID I have is an expired national identity card from Sweden. I am a Swedish citizen.
Will this be a problem? Will I not be allowed to pass through security or board the plane? Would getting a temporary passport help?