
The aim of this PS is to add support for appending grub cmdline params per node image type. For example for worker node we may need to apply hugepages and cpu pinning params. Change-Id: Ieb6104100325cf888046d31da0327b01eaa280ac
22 lines
810 B
Django/Jinja
22 lines
810 B
Django/Jinja
# If you change this file, run 'update-grub' afterwards to update
|
|
# /boot/grub/grub.cfg.
|
|
# For full documentation of the options in this file, see:
|
|
# info -f grub -n 'Simple configuration'
|
|
|
|
GRUB_DEFAULT=0
|
|
GRUB_TERMINAL="serial console"
|
|
GRUB_TIMEOUT_STYLE=menu
|
|
GRUB_TIMEOUT={{ grub.GRUB_TIMEOUT }}
|
|
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
|
|
{% set ns = namespace (content = '') %}
|
|
{% for arg in grub_cmdline_linux_default %}
|
|
{% set ns.content = ns.content + ' ' + arg.name + '=' + arg.value %}
|
|
{% endfor %}
|
|
GRUB_CMDLINE_LINUX_DEFAULT="{{ ns.content }}"
|
|
GRUB_CMDLINE_LINUX=""
|
|
{% set ns = namespace (content = '') %}
|
|
{% for arg in grub.GRUB_SERIAL_COMMAND %}
|
|
{% set ns.content = ns.content + ' --' + arg.name + '=' + arg.value %}
|
|
{% endfor %}
|
|
GRUB_SERIAL_COMMAND="serial {{ ns.content }}"
|