From 7ee61aa2ea2e5cde11477701c97966982c4eeb7e Mon Sep 17 00:00:00 2001 From: Cappy Ishihara Date: Wed, 11 Oct 2023 19:22:33 +0700 Subject: [PATCH] make grub2-install noop --- src/builder.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/builder.rs b/src/builder.rs index 9786fc2..43ea03d 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -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)?, }