From d56b41ce0d1b7321eb4cafc67c4bd661eb217cc0 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 16 Feb 2022 09:33:36 -0600 Subject: [PATCH] on arm disk images make sure there is not a console=tty0 bootarg Appending console=tty0 is problematic for many arm use cases. lets make sure we remove it so systems can just boot https://bugzilla.redhat.com/show_bug.cgi?id=2022757 Signed-off-by: Dennis Gilmore --- fedora-disk-base.ks | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/fedora-disk-base.ks b/fedora-disk-base.ks index 93e95ed..ea67746 100644 --- a/fedora-disk-base.ks +++ b/fedora-disk-base.ks @@ -93,4 +93,12 @@ touch /etc/machine-id # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* +# Anaconda adds console=tty0 to the grub boot line on all images. this is problematic +# when you are using fedora via serial console as you do not get any output post grub +# linux does a good job of knowing what consoles need to be enabled. +# https://bugzilla.redhat.com/show_bug.cgi?id=2022757 +if [[ $arch == "aarch64" ]] || [[ $arch == "armv7l" ]]; then +sed -i -e 's|console=tty0||g' /boot/loader/entries/*conf +fi + %end