Skip to content

Commit

Permalink
make grub2-install noop
Browse files Browse the repository at this point in the history
  • Loading branch information
korewaChino committed Oct 11, 2023
1 parent 140a68b commit 7ee61aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ impl From<&str> for Bootloader {
impl Bootloader {
pub fn install(&self, image: &Path) -> Result<()> {
match *self {
Self::Grub => cmd_lib::run_cmd!(grub2-install $image 2>&1)?,
Self::Grub => {
// no-op
info!("GRUB is not required to be installed to image, skipping");
},
Self::Limine => cmd_lib::run_cmd!(limine bios-install $image 2>&1)?,
Self::SystemdBoot => cmd_lib::run_cmd!(bootctl --image=$image install 2>&1)?,
}
Expand Down

0 comments on commit 7ee61aa

Please sign in to comment.