Re: [jenkins-ci PATCH] guests: Force use of nodebug kernel on Rawhide

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 17, 2018 at 02:55:13PM +0200, Andrea Bolognani wrote:
> The nodebug kernel provides much better performance than the
> standard Rawhide kernel, so we want to use it; however, it can
> sometimes lag behind a bit, which might cause it to be replaced
> with the regular one when performing a system update.
> 
> To work around the issue, perform the update in two steps: first
> with all repositories enabled but excluding the kernel packages,
> then only the kernel packages but with all repositories except
> fedora-rawhide-kernel-nodebug disabled.
> 
> Signed-off-by: Andrea Bolognani <abologna@xxxxxxxxxx>
> ---
>  guests/tasks/base.yml | 18 ++++++++++++++++++
>  1 file changed, 18 insertions(+)
> 
> diff --git a/guests/tasks/base.yml b/guests/tasks/base.yml
> index 616db0a..70d5abc 100644
> --- a/guests/tasks/base.yml
> +++ b/guests/tasks/base.yml
> @@ -104,6 +104,24 @@
>      state: latest
>    when:
>      - package_format == 'rpm'
> +    - not ( os_name == 'Fedora' and
> +            os_version == 'Rawhide' )
> +
> +- name: Update installed packages
> +  command: dnf update --refresh --exclude 'kernel*' -y
> +  args:
> +    warn: no
> +  when:
> +    - os_name == 'Fedora'
> +    - os_version == 'Rawhide'
> +
> +- name: Update installed packages
> +  command: dnf update --disablerepo='*' --enablerepo=fedora-rawhide-kernel-nodebug 'kernel*' -y
> +  args:
> +    warn: no
> +  when:
> +    - os_name == 'Fedora'
> +    - os_version == 'Rawhide'
>  
>  - name: Update installed packages
>    apt:

Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux