Merge "Make sure, the realtime element removes the default kernel"

This commit is contained in:
Zuul 2018-01-24 12:48:39 +00:00 committed by Gerrit Code Review
commit fd70072385
2 changed files with 10 additions and 2 deletions

View File

@ -0,0 +1,10 @@
#!/bin/bash
set -eux
# Uninstalling the default kernel in chroot might fail, if it is the same
# kernel that runs in the host. Therefore we are forcing it here by
# disabling the protected_packages config.
# The machine suffix is required to not accidentally remove the
# kernel-rt again in case the default kernel is not installed.
yum -v -y --setopt=protected_packages= erase kernel.$(uname -m)

View File

@ -1,5 +1,3 @@
kernel-rt:
kernel-rt-kvm:
tuned-profiles-nfv-host:
kernel:
uninstall: True