Skip to content

Commit 6354b74

Browse files
committed
Expose support for changing kernel, and adding arbitrary files
1 parent 154dbab commit 6354b74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ impl<'a> DiskImageBuilder<'a> {
5252
}
5353

5454
/// 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) {
5656
self.add_or_replace_file(path, KERNEL_FILE_NAME)
5757
}
5858

5959
/// Add or replace arbitrary files.
6060
/// NOTE: You can overwrite internal files if you choose, such as EFI/BOOT/BOOTX64.EFI
6161
/// 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) {
6363
self.files.insert(
6464
0,
6565
DiskImageFile::<'a> {

0 commit comments

Comments
 (0)