Writing a custom module for the GRUB 2 bootloader