aboutsummaryrefslogtreecommitdiff
path: root/projects/grub/configs
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2018-12-25 21:23:22 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2018-12-25 21:37:10 -0500
commit4f989bf93a6b8c1a6ce0f38adf47469cd58493e0 (patch)
treed920ae1b31ee31299aee351f1b68a4071b60ca54 /projects/grub/configs
parent0e2e955057f3674150fe5631ba78974fbddf7399 (diff)
downloadlibrebootfr-4f989bf93a6b8c1a6ce0f38adf47469cd58493e0.tar.gz
librebootfr-4f989bf93a6b8c1a6ce0f38adf47469cd58493e0.zip
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)
Diffstat (limited to 'projects/grub/configs')
-rw-r--r--projects/grub/configs/bios/size2
1 files changed, 1 insertions, 1 deletions
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