I'm making major progress now and I'm starting to use my arduino eclipse plugin to upload the sketches.
When doing a upload with the yun one could call merge-sketch-with-bootloader.lua to add the bootloader to the sketch.
From what I can see the arduino IDE is not doing this for the yun shield. However the merge-sketch-with-bootloader.lua script is still available (and my plugin calls it )
I looked at the content of merge-sketch-with-bootloader.lua and there is no "selection of the board" so I think it always adds the same bootloader.
So my guess is that merge-sketch-with-bootloader.lua is still the old one and should have been replaced with a "do nothing" script for backwards compatibility.
Since the latest AVR core include such rule, the "sketch+bootloader" hex is automatically uploaded so there is no need to merge the bootloader again on the Linux side