File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -82,11 +82,17 @@ impl DiskImageBuilder {
82
82
}
83
83
84
84
/// 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.
85
88
pub fn set_file_contents ( & mut self , destination : & str , data : Vec < u8 > ) -> & mut Self {
86
89
self . set_file_source ( destination, FileDataSource :: Data ( data) )
87
90
}
88
91
89
92
/// 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.
90
96
pub fn set_file ( & mut self , destination : & str , file_path : PathBuf ) -> & mut Self {
91
97
self . set_file_source ( destination, FileDataSource :: File ( file_path) )
92
98
}
You can’t perform that action at this time.
0 commit comments