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

pull/27/head
Frédéric Pierret (fepitre) 5 years ago
parent e69b02bec8
commit a44160b1bb
No known key found for this signature in database
GPG Key ID: 484010B5CDC576E2

@ -400,8 +400,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
@ -410,6 +408,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