summaryrefslogtreecommitdiff
path: root/data/templates/grub/grub_compat.j2
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-11-09 14:34:24 -0600
committerJohn Estabrook <jestabro@vyos.io>2023-11-16 12:53:36 -0600
commitbd701768796d6ebb03ca943faf96d1dbea030edd (patch)
tree44513ae5d8110581926278f541897b8d6a5936e2 /data/templates/grub/grub_compat.j2
parentfc5dc00a3892fa26d03213854ea5091d6b0c2c18 (diff)
downloadvyos-1x-bd701768796d6ebb03ca943faf96d1dbea030edd.tar.gz
vyos-1x-bd701768796d6ebb03ca943faf96d1dbea030edd.zip
image: T4516: ensure compatibility with legacy RAID 1 installs
Diffstat (limited to 'data/templates/grub/grub_compat.j2')
-rw-r--r--data/templates/grub/grub_compat.j211
1 files changed, 8 insertions, 3 deletions
diff --git a/data/templates/grub/grub_compat.j2 b/data/templates/grub/grub_compat.j2
index 935172005..887d5d0bd 100644
--- a/data/templates/grub/grub_compat.j2
+++ b/data/templates/grub/grub_compat.j2
@@ -45,9 +45,14 @@ serial --unit=0 --speed=115200
{% endif %}
terminal_output --append serial
terminal_input serial console
-{% if efi %}
-insmod efi_gop
-insmod efi_uga
+{% for mod in modules %}
+insmod {{ mod }}
+{% endfor %}
+{% if root %}
+set root={{ root }}
+{% endif %}
+{% if search_root %}
+{{ search_root }}
{% endif %}
{% for v in versions %}