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 {
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 }
You can’t perform that action at this time.
0 commit comments