From e195fa0d62f5f8eb18baed60b683e27299add98a Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Wed, 22 Nov 2023 09:16:16 +0200 Subject: [PATCH] Change default system console to tty1 because when 2 are defined, it seems that the last one becomes the "default", at least as far as systemd is concerned. This should allow us to read the kairos logs using journalctl. See more here: https://github.com/kairos-io/packages/pull/544 Signed-off-by: Dimitris Karakasilis --- pkg/constants/constants.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/constants/constants.go b/pkg/constants/constants.go index 5208b67..52e1c26 100644 --- a/pkg/constants/constants.go +++ b/pkg/constants/constants.go @@ -56,7 +56,7 @@ const ( fi menuentry "%s" --class os --unrestricted { echo Loading kernel... - $linux ($root)/boot/kernel cdroot root=live:CDLABEL=%s rd.live.dir=/ rd.live.squashimg=rootfs.squashfs rd.live.overlay.overlayfs console=tty1 console=ttyS0 rd.cos.disable + $linux ($root)/boot/kernel cdroot root=live:CDLABEL=%s rd.live.dir=/ rd.live.squashimg=rootfs.squashfs rd.live.overlay.overlayfs console=ttyS0 console=tty1 rd.cos.disable echo Loading initrd... $initrd ($root)/boot/initrd }