Skip to content
Snippets Groups Projects
Unverified Commit cb452983 authored by Frédéric Pierret (fepitre)'s avatar Frédéric Pierret (fepitre) Committed by Marek Marczykowski-Górecki
Browse files

plymouth-ignore-serial-consoles: adjusting the method from marmarek suggestion

parent ac27fed4
No related merge requests found
......@@ -430,8 +430,10 @@ done
# 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
if [ -f /etc/default/grub ]; then
if ! grep -q plymouth.ignore-serial-consoles /etc/default/grub; then
echo 'GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX plymouth.ignore-serial-consoles"' >> /etc/default/grub
fi
fi
# grubby (used by new-kernel-pkg) do not understand xen entries in grub2 config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment