-
Notifications
You must be signed in to change notification settings - Fork 105
Open
Description
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.
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(' ') }}"'
Metadata
Metadata
Assignees
Labels
No labels