summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2024-01-22 21:01:00 -0600
committerJohn Estabrook <jestabro@vyos.io>2024-01-23 10:32:15 -0600
commit1b1569d5b88a20994fc65fd529f8103db371bf3f (patch)
treef661f4782f27c9ea03c49fcabe288e4e361cc4bd /data/templates
parent4c2d4519277bc4cbe964a37160b93c31cdc77309 (diff)
downloadvyos-1x-1b1569d5b88a20994fc65fd529f8103db371bf3f.tar.gz
vyos-1x-1b1569d5b88a20994fc65fd529f8103db371bf3f.zip
image-tools: T5980: add support for configurable kernel boot options
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/grub/grub_vyos_version.j29
1 files changed, 7 insertions, 2 deletions
diff --git a/data/templates/grub/grub_vyos_version.j2 b/data/templates/grub/grub_vyos_version.j2
index 62688e68b..de85f1419 100644
--- a/data/templates/grub/grub_vyos_version.j2
+++ b/data/templates/grub/grub_vyos_version.j2
@@ -1,5 +1,10 @@
-{% set boot_opts_default = "boot=live rootdelay=5 noautologin net.ifnames=0 biosdevname=0 vyos-union=/boot/" + version_name %}
-{% if boot_opts != '' %}
+{% if boot_opts_config is vyos_defined %}
+{% if boot_opts_config %}
+{% set boot_opts_rendered = boot_opts_default + " " + boot_opts_config %}
+{% else %}
+{% set boot_opts_rendered = boot_opts_default %}
+{% endif %}
+{% elif boot_opts != '' %}
{% set boot_opts_rendered = boot_opts %}
{% else %}
{% set boot_opts_rendered = boot_opts_default %}