File tree 2 files changed +2
-46
lines changed
2 files changed +2
-46
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ use tempfile::NamedTempFile;
14
14
mod fat;
15
15
mod gpt;
16
16
mod mbr;
17
- mod pxe;
18
17
19
18
const KERNEL_FILE_NAME : & str = "kernel-x86_64" ;
20
19
const RAMDISK_FILE_NAME : & str = "ramdisk" ;
@@ -52,14 +51,14 @@ impl<'a> DiskImageBuilder<'a> {
52
51
}
53
52
54
53
/// Add or replace a kernel to be included in the final image.
55
- fn set_kernel ( & mut self , path : & ' a PathBuf ) {
54
+ pub fn set_kernel ( & mut self , path : & ' a PathBuf ) {
56
55
self . add_or_replace_file ( path, KERNEL_FILE_NAME )
57
56
}
58
57
59
58
/// Add or replace arbitrary files.
60
59
/// NOTE: You can overwrite internal files if you choose, such as EFI/BOOT/BOOTX64.EFI
61
60
/// This can be useful in situations where you want to generate an image, but not use the provided bootloader.
62
- fn add_or_replace_file ( & mut self , path : & ' a PathBuf , target : & ' a str ) {
61
+ pub fn add_or_replace_file ( & mut self , path : & ' a PathBuf , target : & ' a str ) {
63
62
self . files . insert (
64
63
0 ,
65
64
DiskImageFile :: < ' a > {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments