Ensure the rebuild of grub.cfg with plymouth.ignore-serial-consoles

(cherry picked from commit a44160b1bb)
pull/31/head
Frédéric Pierret (fepitre) 5 years ago committed by Marek Marczykowski-Górecki
parent cb452983b5
commit 4111545966
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -426,8 +426,6 @@ done
/sbin/depmod -a %{kernelrelease}
%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 [ -f /etc/default/grub ]; then
@ -436,6 +434,8 @@ if [ -f /etc/default/grub ]; then
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
if [ -x /sbin/new-kernel-pkg -a -e /boot/grub2/grub.cfg ]; then
grub2-mkconfig > /boot/grub2/grub.cfg

Loading…
Cancel
Save