File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ impl<'a> DiskImageBuilder<'a> {
52
52
}
53
53
54
54
/// Add or replace a kernel to be included in the final image.
55
- fn set_kernel ( & mut self , path : & ' a PathBuf ) {
55
+ pub fn set_kernel ( & mut self , path : & ' a PathBuf ) {
56
56
self . add_or_replace_file ( path, KERNEL_FILE_NAME )
57
57
}
58
58
59
59
/// Add or replace arbitrary files.
60
60
/// NOTE: You can overwrite internal files if you choose, such as EFI/BOOT/BOOTX64.EFI
61
61
/// 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 ) {
62
+ pub fn add_or_replace_file ( & mut self , path : & ' a PathBuf , target : & ' a str ) {
63
63
self . files . insert (
64
64
0 ,
65
65
DiskImageFile :: < ' a > {
You can’t perform that action at this time.
0 commit comments