From 1e9167d949638237b89c2a2484c15b4ad36ca111 Mon Sep 17 00:00:00 2001 From: Michele Baldessari Date: Thu, 2 Apr 2020 22:21:43 +0200 Subject: [PATCH] Allow to customize the undercloud's grub options This is useful if you want to add things like net.ifnames=0 (to make sure your undercloud has eth* named nics) or mitigations=off for that extra performance. Tested by adding: undercloud_extra_grub_params: net.ifnames=0 mitigations=off And observing the following on the undercloud: (undercloud) [stack@undercloud ~]$ cat /proc/cmdline console=ttyS0 root=/dev/vda net.ifnames=0 mitigations=off Change-Id: Ie814765897699705a2826ed1a8c8d8f85d579028 --- roles/libvirt/setup/undercloud/templates/undercloudvm.xml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/libvirt/setup/undercloud/templates/undercloudvm.xml.j2 b/roles/libvirt/setup/undercloud/templates/undercloudvm.xml.j2 index f51aa70d2..675d3df8d 100644 --- a/roles/libvirt/setup/undercloud/templates/undercloudvm.xml.j2 +++ b/roles/libvirt/setup/undercloud/templates/undercloudvm.xml.j2 @@ -17,7 +17,7 @@ {% if overcloud_as_undercloud|bool or undercloud_use_custom_boot_images|bool %} {{ undercloud_custom_vmlinuz }} {{ undercloud_custom_initrd }} - console=ttyS0 root=/dev/vda + console=ttyS0 root=/dev/vda {{ undercloud_extra_grub_params|default('') }} {% endif %}