summaryrefslogtreecommitdiff
path: root/roles/install-grub-wrapper/tasks
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2024-03-13 01:10:50 +0200
committerzdc <zdc@users.noreply.github.com>2024-03-14 17:39:20 +0200
commit425b808028a993a6ca13196ad6ad7b9daf358518 (patch)
tree5d411c47db43f5120905a4b78601bbf65b0c3641 /roles/install-grub-wrapper/tasks
parent8f2bc373c5bf8b4018814c17dbddad3730ef66bf (diff)
downloadvyos-vm-images-425b808028a993a6ca13196ad6ad7b9daf358518.tar.gz
vyos-vm-images-425b808028a993a6ca13196ad6ad7b9daf358518.zip
Added support for new GRUB configuration in >=1.4
Added support for the new GRUB configuration style used in VyOS 1.4 and newer.
Diffstat (limited to 'roles/install-grub-wrapper/tasks')
-rw-r--r--roles/install-grub-wrapper/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/install-grub-wrapper/tasks/main.yml b/roles/install-grub-wrapper/tasks/main.yml
new file mode 100644
index 0000000..9a531f9
--- /dev/null
+++ b/roles/install-grub-wrapper/tasks/main.yml
@@ -0,0 +1,9 @@
+- name: Select GRUB for installer for VyOS <=1.3
+ include_role:
+ name: install-grub
+ when: vyos_version is regex("^1\.[2-3].*$")
+
+- name: Select GRUB for installer for VyOS >=1.4
+ include_role:
+ name: install-grub-v2
+ when: vyos_version is regex("^1\.[4-9].*$")