Skip to content

Commit

Permalink
fix: Account for efi systems
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo authored Sep 27, 2023
1 parent 37e48d9 commit 4b0bddd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build/ublue-os-just/00-default.just
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4b0bddd

Please sign in to comment.