[libvirt] [jenkins-ci PATCH] guests: Reduce boot delay for FreeBSD

Andrea Bolognani abologna at redhat.com
Fri Oct 20 20:11:31 UTC 2017


Set it to 1 second instead of the default 10 seconds. This brings
it in line with Linux guests and makes boot faster.

Signed-off-by: Andrea Bolognani <abologna at redhat.com>
---
 guests/tasks/base.yml | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/guests/tasks/base.yml b/guests/tasks/base.yml
index a25420a..a71e66d 100644
--- a/guests/tasks/base.yml
+++ b/guests/tasks/base.yml
@@ -181,9 +181,12 @@
 - name: Configure the FreeBSD bootloader
   lineinfile:
     path: /boot/loader.conf
-    regexp: '^console=.*$'
-    line: 'console="comconsole"'
+    regexp: '^{{ item.key }}=.*$'
+    line: '{{ item.key }}="{{ item.value }}"'
     create: yes
     backup: yes
+  with_items:
+    - { key: 'console', value: 'comconsole' }
+    - { key: 'autoboot_delay', value: '1' }
   when:
     - os_name == 'FreeBSD'
-- 
2.13.6




More information about the libvir-list mailing list