You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope you well.
When you add grub.conf, I think it have to check need or not.
So, I wish to change location of include: linux.system.grub in If condition.
Thanks.
diff --git a/linux/system/kernel.sls b/linux/system/kernel.sls
index c4d181c..868bb0c 100644
--- a/linux/system/kernel.sls
+++ b/linux/system/kernel.sls
@@ -9,10 +9,11 @@
{%- do kernel_boot_opts.append('transparent_hugepage=' ~ system.kernel.transparent_hugepage) if system.kernel.transparent_hugepage is defined %}
{%- do kernel_boot_opts.extend(system.kernel.boot_options) if system.kernel.boot_options is defined %}
+
+{%- if kernel_boot_opts %}
include:
- linux.system.grub
-{%- if kernel_boot_opts %}
/etc/default/grub.d/99-custom-settings.cfg:
file.managed:
- contents: 'GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT {{ kernel_boot_opts|join(' ') }}"'
The text was updated successfully, but these errors were encountered:
madboxkr
changed the title
Change location linux include grub on kernel.sls
Change location include: linux.system.grub on kernel.sls
Sep 16, 2019
Hello All.
I hope you well.
When you add grub.conf, I think it have to check need or not.
So, I wish to change location of
include: linux.system.grub
in If condition.Thanks.
The text was updated successfully, but these errors were encountered: