added suggestion when limine is not present

memory-manager
ondra05 2023-01-15 01:04:14 +01:00
parent 20bf56984d
commit 59d8024332
No known key found for this signature in database
GPG Key ID: 110E9A6F7CBA6712
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ fn get_fs() -> Result<FileSystem<impl ReadWriteSeek>, io::Error> {
let bootdir = fs.root_dir().create_dir("efi")?.create_dir("boot")?;
io::copy(
&mut File::open("limine/BOOTX64.EFI")?,
&mut File::open("limine/BOOTX64.EFI")
.into_report()
.attach_printable("copying Limine bootloader (have you pulled the submodule?)")?,
&mut bootdir.create_file("bootx64.efi")?,
)?;