Browse Source

Always include grub.sls

Change-Id: If1bbd97b5719c53193f6287c4a025e6ef0dafbb0
Related-Prod: PROD-18386
pull/170/head
Dmitry Teselkin 6 years ago
parent
commit
f1c123ca5f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      linux/system/kernel.sls

+ 1
- 1
linux/system/kernel.sls View File

{%- do kernel_boot_opts.append('elevator=' ~ system.kernel.elevator) if system.kernel.elevator is defined %} {%- do kernel_boot_opts.append('elevator=' ~ system.kernel.elevator) if system.kernel.elevator is defined %}
{%- do kernel_boot_opts.extend(system.kernel.boot_options) if system.kernel.boot_options is defined %} {%- do kernel_boot_opts.extend(system.kernel.boot_options) if system.kernel.boot_options is defined %}


{%- if kernel_boot_opts %}
include: include:
- linux.system.grub - linux.system.grub


{%- if kernel_boot_opts %}
/etc/default/grub.d/99-custom-settings.cfg: /etc/default/grub.d/99-custom-settings.cfg:
file.managed: file.managed:
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT {{ kernel_boot_opts|join(' ') }}"' - contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT {{ kernel_boot_opts|join(' ') }}"'

Loading…
Cancel
Save