Hi Digle,
Can you check this site: Intel Galileo - Building Linux Image?. There is an explanation step by step about rebuild an image. Notice the file at the end, maybe it is useful for you. Also put attention at the links inside this site, those links can help you too. Have a great day!
Regards,
Diego.