File tree Expand file tree Collapse file tree 2 files changed +2
-46
lines changed
Expand file tree Collapse file tree 2 files changed +2
-46
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ use tempfile::NamedTempFile;
1414mod fat;
1515mod gpt;
1616mod mbr;
17- mod pxe;
1817
1918const KERNEL_FILE_NAME : & str = "kernel-x86_64" ;
2019const RAMDISK_FILE_NAME : & str = "ramdisk" ;
@@ -52,14 +51,14 @@ impl<'a> DiskImageBuilder<'a> {
5251 }
5352
5453 /// 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 ) {
5655 self . add_or_replace_file ( path, KERNEL_FILE_NAME )
5756 }
5857
5958 /// Add or replace arbitrary files.
6059 /// NOTE: You can overwrite internal files if you choose, such as EFI/BOOT/BOOTX64.EFI
6160 /// 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 ) {
6362 self . files . insert (
6463 0 ,
6564 DiskImageFile :: < ' a > {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments