diff --git a/build/ublue-os-just/00-default.just b/build/ublue-os-just/00-default.just index d91feaa9..d2d2b3e6 100644 --- a/build/ublue-os-just/00-default.just +++ b/build/ublue-os-just/00-default.just @@ -12,7 +12,12 @@ bios: # Regenerate GRUB config, useful in dual-boot scenarios where a second operating system isn't listed regenerate-grub: - sudo grub2-mkconfig -o /etc/grub2.cfg + #!/usr/bin/env bash + if [ -d /sys/firmware/efi ]; then + sudo grub2-mkconfig -o /etc/grub2-efi.cfg + else + sudo grub2-mkconfig -o /etc/grub2.cfg + fi # Show the changelog changelogs: