From 4f989bf93a6b8c1a6ce0f38adf47469cd58493e0 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Tue, 25 Dec 2018 21:23:22 -0500 Subject: Refactor SeaGRUB floppy creation code Related issue #553 Previously, the GRUB boot image and core image were concatenated together and padding added to create a (pseudo) floppy image. However, testing revealed that GRUB has issues dynamically loading modules from $prefix if $prefix is not located on the same device from which GRUB booted. In order to get around this issue, a proper 2.88MiB floppy image is created using mkfs.fat with GRUB modules copied to directories on the filesystem (i.e, /boot/grub/i386-pc). The 2.88MiB filesystem size is necessary to be able to fit all modules onto the image. New functions added to grub-helper: * grub_floppy_image_mmd (create directories on image using mtools mmd) * grub_floppy_image_mcopy (copy files to image using mtools mcopy) --- projects/grub/configs/bios/size | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'projects/grub/configs/bios') diff --git a/projects/grub/configs/bios/size b/projects/grub/configs/bios/size index a7625603..693832e1 100644 --- a/projects/grub/configs/bios/size +++ b/projects/grub/configs/bios/size @@ -1 +1 @@ -160 +2880 -- cgit v1.2.3-70-g09d2 From d522956bd9f6ecb6ebf5bdd9d2f23e43dfabf5c5 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Tue, 25 Dec 2018 21:59:27 -0500 Subject: Include FAT fs support in BIOS GRUB core.img The SeaGRUB floppy image has a FAT12 filesystem and GRUB needs to be able to read it in order to load modules stored there. --- projects/grub/configs/bios/modules-minimal | 1 + 1 file changed, 1 insertion(+) (limited to 'projects/grub/configs/bios') diff --git a/projects/grub/configs/bios/modules-minimal b/projects/grub/configs/bios/modules-minimal index 604b8091..b9684529 100644 --- a/projects/grub/configs/bios/modules-minimal +++ b/projects/grub/configs/bios/modules-minimal @@ -5,6 +5,7 @@ cbmemc configfile ehci ext2 +fat halt loadenv memdisk -- cgit v1.2.3-70-g09d2