Skip to content

Commit

Permalink
create boot dir
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Oct 10, 2023
1 parent aa36fec commit 00c51d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ impl Bootloader {
bail_let!(Some(vmlinuz) = vmlinuz => "Cannot find vmlinuz in {bootdir:?}");
bail_let!(Some(initramfs) = initramfs => "Cannot find initramfs in {bootdir:?}");

std::fs::create_dir_all(dest.join("boot"))?;
std::fs::copy(bootdir.join(&vmlinuz), dest.join("boot").join(&vmlinuz))?;
std::fs::copy(bootdir.join(&initramfs), dest.join("boot").join(&initramfs))?;

Expand Down

0 comments on commit 00c51d6

Please sign in to comment.