Hi, I made a small patch for grub2 using a romfs file ( zip compressing support ). there are 3 files added:
-/commands/i386/pc/romfst.c command to mount a romfs image file. -/fs/i386/pc/romfs.c fs and disk layer for romfs. -/include/grub/i386/pc/romfs.h header file. usage: grub>romfst /romfs.gz grub>cat (rd)/readme.txt info ------------------------------------------------------------ i make this patch have two resources: the grub legancy romfs patch and the bean's pxe patch. i get to know the pxe mod merged the disk&fs into a fs source file. this will make mod more simple to implement. the romfst command will load the specify file to a new memory block. when user access (rd), the new files are ready for him. limitations ------------------------------------------------------------ * this patch is for file only: if you want to use it on a disk/partition, we should improve it. * grub_romfs_data *data, has not set to file->data - i used several global varibles to store releated stuffs. well, this is just a work-able patch, not too professional. ;-) btw, i think the grub_dprintf should output to non-display device, this will make debuging more easier and comfort . i think the low-cost device is a com-port. for, now time virtual machine software has this legancy device full supported. the freeldr coming with ReactOS have this kind of function (only display a string, but can do kernal debug also ) y.volta
rev_1813.romfs.patch
Description: Binary data
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel