Skip to content

Commit 6e9b6a3

Browse files
committed
Document that only the kernel and ramdisk are loaded into memory
1 parent 1a5cdf6 commit 6e9b6a3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lib.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,17 @@ impl DiskImageBuilder {
8282
}
8383

8484
/// Add a file with the specified bytes to the disk image
85+
///
86+
/// Note that the bootloader only loads the kernel and ramdisk files into memory on boot.
87+
/// Other files need to be loaded manually by the kernel.
8588
pub fn set_file_contents(&mut self, destination: &str, data: Vec<u8>) -> &mut Self {
8689
self.set_file_source(destination, FileDataSource::Data(data))
8790
}
8891

8992
/// Add a file with the specified source file to the disk image
93+
///
94+
/// Note that the bootloader only loads the kernel and ramdisk files into memory on boot.
95+
/// Other files need to be loaded manually by the kernel.
9096
pub fn set_file(&mut self, destination: &str, file_path: PathBuf) -> &mut Self {
9197
self.set_file_source(destination, FileDataSource::File(file_path))
9298
}

0 commit comments

Comments
 (0)