From ad9f3374c784374871ca61b1d14305c58e316237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret=20=28fepitre=29?= Date: Fri, 15 Mar 2019 14:41:17 +0100 Subject: [PATCH] plymouth: ignore serial console hvc0 in UEFI (cherry picked from commit 61b9336d70791f726125e0b3f7c1aae43d64be97) --- kernel.spec.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel.spec.in b/kernel.spec.in index 8d0ae86..29b29bb 100644 --- a/kernel.spec.in +++ b/kernel.spec.in @@ -434,6 +434,12 @@ if [ -f /etc/default/grub ]; then fi fi +if [ -f /boot/efi/EFI/qubes/xen.cfg ]; then + if ! grep -q plymouth.ignore-serial-consoles /boot/efi/EFI/qubes/xen.cfg; then + sed -i 's/kernel=.*/& plymouth.ignore-serial-consoles/g' /boot/efi/EFI/qubes/xen.cfg + fi +fi + /bin/kernel-install add %{kernelrelease} /boot/vmlinuz-%{kernelrelease} || exit $? # grubby (used by new-kernel-pkg) do not understand xen entries in grub2 config