Skip to content

Conversation

@Wasabi375
Copy link
Contributor

Right now it is difficult to use this bootloader with more than just the basic disk-images create by this crate, e.g. it is currently not possible to create a boot-image with multiple partitions.

It can be achieved but that requires a somewhat complex build script that installs "bootloader-x86_64-uefi" or the bios variants and then creates the fat-partition by hand.

This change exposes some functionality of DiskImageBuilder to make some of those things easier.
The bootloader crate already has a buildscript that installs the necessary uefi/bios creates and extracts those files into byte arrays. Those are now public.
I also extracted the functionality to create a boot-able FAT-partition into it's own function and marked it as pub.

The goal of this PR is not to create a fully configurable system to add partitions to the boot image, but to expose the necessary data, for consumer of this crate to build their own partitioning scheme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant