summaryrefslogtreecommitdiff
path: root/include/rom.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/rom.sh')
-rw-r--r--include/rom.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/rom.sh b/include/rom.sh
index d4071169..e7745271 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -135,7 +135,8 @@ add_seabios()
[ "$payload_grub" = "y" ] && add_grub
- cprom && [ "$payload_grub" = "y" ] && pname="seagrub" && mkseagrub; :
+ [ "$seabiosname" = "fallback/payload" ] && cprom
+ [ "$payload_grub" = "y" ] && pname="seagrub" && mkseagrub; :
}
add_grub()
@@ -149,6 +150,7 @@ add_grub()
mkseagrub()
{
+ [ "$grubname" = "fallback/payload" ] && pname="grub"
cbfs "$tmprom" "$grubdata/bootorder" bootorder raw
for keymap in config/data/grub/keymap/*.gkb; do
[ -f "$keymap" ] && cprom "${keymap##*/}"; :