We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 154dbab commit 6354b74Copy full SHA for 6354b74
src/lib.rs
@@ -52,14 +52,14 @@ impl<'a> DiskImageBuilder<'a> {
52
}
53
54
/// Add or replace a kernel to be included in the final image.
55
- fn set_kernel(&mut self, path: &'a PathBuf) {
+ pub fn set_kernel(&mut self, path: &'a PathBuf) {
56
self.add_or_replace_file(path, KERNEL_FILE_NAME)
57
58
59
/// Add or replace arbitrary files.
60
/// NOTE: You can overwrite internal files if you choose, such as EFI/BOOT/BOOTX64.EFI
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) {
+ pub fn add_or_replace_file(&mut self, path: &'a PathBuf, target: &'a str) {
63
self.files.insert(
64
0,
65
DiskImageFile::<'a> {
0 commit comments