File tree 3 files changed +9
-9
lines changed
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";
7
7
8
8
/// Create disk images for booting on legacy BIOS systems.
9
9
pub struct BiosBoot {
10
- image_builder : DiskImageBuilder
10
+ image_builder : DiskImageBuilder ,
11
11
}
12
12
13
13
impl BiosBoot {
14
14
/// Start creating a disk image for the given bootloader ELF executable.
15
15
pub fn new ( kernel_path : & Path ) -> Self {
16
16
Self {
17
- image_builder : DiskImageBuilder :: new ( kernel_path)
17
+ image_builder : DiskImageBuilder :: new ( kernel_path) ,
18
18
}
19
19
}
20
20
@@ -28,4 +28,4 @@ impl BiosBoot {
28
28
pub fn create_disk_image ( & self , out_path : & Path ) -> anyhow:: Result < ( ) > {
29
29
self . image_builder . create_bios_image ( out_path)
30
30
}
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.
4
4
5
5
#![ warn( missing_docs) ]
6
6
7
+ #[ cfg( feature = "bios" ) ]
8
+ mod bios;
7
9
#[ cfg( feature = "uefi" ) ]
8
10
mod gpt;
9
11
#[ cfg( feature = "bios" ) ]
10
12
mod mbr;
11
- #[ cfg( feature = "bios" ) ]
12
- mod bios;
13
13
#[ cfg( feature = "uefi" ) ]
14
14
mod uefi;
15
15
Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ const BIOS_STAGE_4: &str = "boot-stage-4";
7
7
8
8
/// Create disk images for booting on legacy BIOS systems.
9
9
pub struct UefiBoot {
10
- image_builder : DiskImageBuilder
10
+ image_builder : DiskImageBuilder ,
11
11
}
12
12
13
13
impl UefiBoot {
14
14
/// Start creating a disk image for the given bootloader ELF executable.
15
15
pub fn new ( kernel_path : & Path ) -> Self {
16
16
Self {
17
- image_builder : DiskImageBuilder :: new ( kernel_path)
17
+ image_builder : DiskImageBuilder :: new ( kernel_path) ,
18
18
}
19
19
}
20
20
@@ -28,7 +28,7 @@ impl UefiBoot {
28
28
pub fn create_disk_image ( & self , out_path : & Path ) -> anyhow:: Result < ( ) > {
29
29
self . image_builder . create_uefi_image ( out_path)
30
30
}
31
-
31
+
32
32
/// Prepare a folder for use with booting over UEFI_PXE.
33
33
///
34
34
/// This places the bootloader executable under the path "bootloader". The
@@ -37,4 +37,4 @@ impl UefiBoot {
37
37
pub fn create_pxe_tftp_folder ( & self , out_path : & Path ) -> anyhow:: Result < ( ) > {
38
38
self . image_builder . create_uefi_tftp_folder ( out_path)
39
39
}
40
- }
40
+ }
You can’t perform that action at this time.
0 commit comments