From c656ae6f787c10873398e44ce059954944b1b05c Mon Sep 17 00:00:00 2001 From: Sinny Kumari Date: Thu, 12 Oct 2017 11:31:13 +0530 Subject: [PATCH] Include console=ttyAMA0 and console=hvc0 in Atomic kickstart While booting Atomic cloudImage, we want to see kernel messages on both VGA and serial console. It works fine with tty1(vga console) and ttyS0(serial console) on x86_64 arch. But, aarch64 and ppc64le doesn't use ttyS0 as serial console. Instead, they use ttyAMA0(aarch64) and hvc0 (ppc64le). Also, good point is that if a serial console specified in kernel boot parameter is not supported on a given hardware platform, it gets ignored. For example: console=ttyAMA0 and console=hvc0 will get ignored on x86_64 Fixes: https://pagure.io/atomic-wg/issue/347 Signed-off-by: Sinny Kumari --- fedora-atomic.ks | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fedora-atomic.ks b/fedora-atomic.ks index 76235e1..9125221 100644 --- a/fedora-atomic.ks +++ b/fedora-atomic.ks @@ -17,7 +17,11 @@ rootpw --lock --iscrypted locked firewall --disabled -bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0" +# console=ttyAMA0 and console=hvc0 as kernel boot parameter to see +# kernel boot messages on serial console as well on aarch64 and +# ppc64le respectively. +# https://pagure.io/atomic-wg/issue/347 +bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0,115200n8 console=ttyAMA0 console=hvc0 net.ifnames=0" network --bootproto=dhcp --device=link --activate --onboot=on services --enabled=sshd,cloud-init,cloud-init-local,cloud-config,cloud-final