Skip to content

Commit

Permalink
plymouth: ignore serial console hvc0
Browse files Browse the repository at this point in the history
It fixes splash screen issue QubesOS/qubes-issues#3849

(cherry picked from commit af67412)
  • Loading branch information
fepitre authored and marmarek committed Mar 19, 2019
1 parent 6fa02f0 commit ac27fed
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kernel.spec.in
Expand Up @@ -428,6 +428,12 @@ done
%posttrans
/bin/kernel-install add %{kernelrelease} /boot/vmlinuz-%{kernelrelease} || exit $?

# with kernel-4.14+ plymouth detects hvc0 serial console and forces text boot
# we simply make plymouth ignore it to recover the splash screen
if ! grep -q '^GRUB_CMDLINE_LINUX.*plymouth.ignore-serial-consoles' /etc/default/grub; then
sed -i 's/^GRUB_CMDLINE_LINUX="[^"]*/& plymouth.ignore-serial-consoles/' /etc/default/grub
fi

# grubby (used by new-kernel-pkg) do not understand xen entries in grub2 config
if [ -x /sbin/new-kernel-pkg -a -e /boot/grub2/grub.cfg ]; then
grub2-mkconfig > /boot/grub2/grub.cfg
Expand Down

0 comments on commit ac27fed

Please sign in to comment.