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

Andrea Bolognani posted 1 patch 6 years, 6 months ago
Failed in applying to current master (apply log)
guests/tasks/base.yml | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
[libvirt] [jenkins-ci PATCH] guests: Reduce boot delay for FreeBSD
Posted by Andrea Bolognani 6 years, 6 months ago
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@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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [jenkins-ci PATCH] guests: Reduce boot delay for FreeBSD
Posted by Pavel Hrdina 6 years, 5 months ago
On Fri, Oct 20, 2017 at 10:11:31PM +0200, Andrea Bolognani wrote:
> 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@redhat.com>
> ---
>  guests/tasks/base.yml | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list