summaryrefslogtreecommitdiff
path: root/roles/install-grub
diff options
context:
space:
mode:
authorzsdc <taras@vyos.io>2020-04-20 23:45:01 +0300
committerzsdc <taras@vyos.io>2020-04-20 23:45:01 +0300
commitafca529c30e486e834ad5e98f18bfba5f40710ac (patch)
treedb0aa82c17f585af7e9238153acf8c67507f3fcd /roles/install-grub
parentffd398585f441f6cc3b23e9080f48ed7fe951069 (diff)
downloadvyos-vm-images-afca529c30e486e834ad5e98f18bfba5f40710ac.tar.gz
vyos-vm-images-afca529c30e486e834ad5e98f18bfba5f40710ac.zip
Restored ability to build an OVA image
Also: - actualized some variables - added more objects to cleanup to not keep garbage after playbook run - added variable to select default boot console in GRUB
Diffstat (limited to 'roles/install-grub')
-rw-r--r--roles/install-grub/templates/boot/grub/grub.cfg.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/roles/install-grub/templates/boot/grub/grub.cfg.j2 b/roles/install-grub/templates/boot/grub/grub.cfg.j2
index 0440442..6cfea8f 100644
--- a/roles/install-grub/templates/boot/grub/grub.cfg.j2
+++ b/roles/install-grub/templates/boot/grub/grub.cfg.j2
@@ -1,4 +1,8 @@
+{% if grub_console == "kvm" %}
+set default=0
+{% elif grub_console == "serial" %}
set default=1
+{% endif %}
set timeout=5
serial --unit=0
terminal_output --append serial