File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ const BIOS_STAGE_4: &str = "boot-stage-4";
77
88/// Create disk images for booting on legacy BIOS systems.
99pub struct BiosBoot {
10- image_builder : DiskImageBuilder
10+ image_builder : DiskImageBuilder ,
1111}
1212
1313impl BiosBoot {
1414 /// Start creating a disk image for the given bootloader ELF executable.
1515 pub fn new ( kernel_path : & Path ) -> Self {
1616 Self {
17- image_builder : DiskImageBuilder :: new ( kernel_path)
17+ image_builder : DiskImageBuilder :: new ( kernel_path) ,
1818 }
1919 }
2020
@@ -28,4 +28,4 @@ impl BiosBoot {
2828 pub fn create_disk_image ( & self , out_path : & Path ) -> anyhow:: Result < ( ) > {
2929 self . image_builder . create_bios_image ( out_path)
3030 }
31- }
31+ }
Original file line number Diff line number Diff line change @@ -4,12 +4,12 @@ An experimental x86_64 bootloader that works on both BIOS and UEFI systems.
44
55#![ warn( missing_docs) ]
66
7+ #[ cfg( feature = "bios" ) ]
8+ mod bios;
79#[ cfg( feature = "uefi" ) ]
810mod gpt;
911#[ cfg( feature = "bios" ) ]
1012mod mbr;
11- #[ cfg( feature = "bios" ) ]
12- mod bios;
1313#[ cfg( feature = "uefi" ) ]
1414mod uefi;
1515
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ const BIOS_STAGE_4: &str = "boot-stage-4";
77
88/// Create disk images for booting on legacy BIOS systems.
99pub struct UefiBoot {
10- image_builder : DiskImageBuilder
10+ image_builder : DiskImageBuilder ,
1111}
1212
1313impl UefiBoot {
1414 /// Start creating a disk image for the given bootloader ELF executable.
1515 pub fn new ( kernel_path : & Path ) -> Self {
1616 Self {
17- image_builder : DiskImageBuilder :: new ( kernel_path)
17+ image_builder : DiskImageBuilder :: new ( kernel_path) ,
1818 }
1919 }
2020
@@ -28,7 +28,7 @@ impl UefiBoot {
2828 pub fn create_disk_image ( & self , out_path : & Path ) -> anyhow:: Result < ( ) > {
2929 self . image_builder . create_uefi_image ( out_path)
3030 }
31-
31+
3232 /// Prepare a folder for use with booting over UEFI_PXE.
3333 ///
3434 /// This places the bootloader executable under the path "bootloader". The
@@ -37,4 +37,4 @@ impl UefiBoot {
3737 pub fn create_pxe_tftp_folder ( & self , out_path : & Path ) -> anyhow:: Result < ( ) > {
3838 self . image_builder . create_uefi_tftp_folder ( out_path)
3939 }
40- }
40+ }
You can’t perform that action at this time.
0 commit comments