From 4b0bddda8e9e5b8796ec0c0a9fc867c0b564a7bc Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Wed, 27 Sep 2023 10:52:58 -0700 Subject: [PATCH] fix: Account for efi systems --- build/ublue-os-just/00-default.just | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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: