El sáb, 21-06-2008 a las 16:19 +0200, Robert Millan escribió:
But space in post-mbr area is precious, and if we can save a bit, it means
less users who will run into trouble in first place.
Disclaimer: the following is just the product of brainstorming from a
mind tortured by hours of studying projective geometry. Use with care ^^
Why not modify the build system to create _two_ instances of kernel.img,
one with and another without debugging? grub_mkimage would create the
normal, smaller core.img (without dprintf) for installing and embedding;
and store a core_dbg.img in the /boot/grub folder, so that if
instrumentation is required the only thing the users needs to do is
chain that debug version of GRUB:
grub> multiboot /boot/grub/core_dbg.img
grub> boot
OTOH, it could add maintainance burden for us when we have to explain
everyone that they have to rebuild and reinstall GRUB to get the debug
output _and_ it opens the door for heisenbugs.
But space in post-mbr area is precious, and if we can save a bit, it means
less users who will run into trouble in first place.