By default, Fedora Rawhide uses a kernel with a lot of debug options
enable. This is very useful for the development of Rawhide itself,
but also causes a pretty significant performance penalty.
Enable the fedora-rawhide-kernel-nodebug, with higher than default
priority, to make sure the non-debug kernels are picked up instead
of the debug ones.
Signed-off-by: Andrea Bolognani <abologna(a)redhat.com>
---
guests/files/fedora-rawhide-kernel-nodebug.repo | 8 ++++++++
guests/tasks/base.yml | 10 ++++++++++
2 files changed, 18 insertions(+)
create mode 100644 guests/files/fedora-rawhide-kernel-nodebug.repo
diff --git a/guests/files/fedora-rawhide-kernel-nodebug.repo
b/guests/files/fedora-rawhide-kernel-nodebug.repo
new file mode 100644
index 0000000..76198dc
--- /dev/null
+++ b/guests/files/fedora-rawhide-kernel-nodebug.repo
@@ -0,0 +1,8 @@
+[fedora-rawhide-kernel-nodebug]
+name=Rawhide kernels built without debugging turned on
+baseurl=https://dl.fedoraproject.org/pub/alt/rawhide-kernel-nodebug/$basearch
+enabled=1
+skip_if_unavailable=0
+metadata_expire=6h
+gpgcheck=0
+priority=90
diff --git a/guests/tasks/base.yml b/guests/tasks/base.yml
index 798d7cd..1604cd0 100644
--- a/guests/tasks/base.yml
+++ b/guests/tasks/base.yml
@@ -77,6 +77,16 @@
- os_name == 'Debian'
- os_version == '8'
+- name: Enable fedora-rawhide-kernel-nodebug repository
+ copy:
+ src: files/fedora-rawhide-kernel-nodebug.repo
+ dest: /etc/yum.repos.d/fedora-rawhide-kernel-nodebug.repo
+ owner: root
+ group: root
+ when:
+ - os_name == 'Fedora'
+ - os_version == 'Rawhide'
+
- name: Update installed packages
package:
name: '*'
--
2.13.6