2 Commits

Author SHA1 Message Date
Dimitris Karakasilis
f8a2119018 Merge pull request #16 from kairos-io/change-default-console
Change default system console to tty1
2023-11-22 09:22:49 +02:00
Dimitris Karakasilis
e195fa0d62 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 <dimitris@karakasilis.me>
2023-11-22 09:16:16 +02:00
3 changed files with 1 additions and 3 deletions

1
go.mod
View File

@@ -14,7 +14,6 @@ require (
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.16.0
github.com/twpayne/go-vfs v1.7.2
github.com/twpayne/go-vfs/v4 v4.3.0
k8s.io/mount-utils v0.27.3
)

1
go.sum
View File

@@ -537,7 +537,6 @@ github.com/tredoe/osutil/v2 v2.0.0-rc.16 h1:5A2SKvyB2c3lhPYUIHyFtu6jbaXlaA3Hu5gW
github.com/tredoe/osutil/v2 v2.0.0-rc.16/go.mod h1:uLRVx/3pb7Y4RQhG8cQFbPE9ha5r81e6MXpBsxbTAYc=
github.com/twpayne/go-vfs v1.7.2 h1:ZNYMAXcu2Av8c109USrSGYm8dIIIV0xPlG19I2088Kw=
github.com/twpayne/go-vfs v1.7.2/go.mod h1:1eni2ntkiiAHZG27xfLOO4CYvMR4Kw8V7rYiLeeolsQ=
github.com/twpayne/go-vfs/v4 v4.3.0/go.mod h1:tq2UVhnUepesc0lSnPJH/jQ8HruGhzwZe2r5kDFpEIw=
github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
github.com/ulikunitz/xz v0.5.10/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14=
github.com/ulikunitz/xz v0.5.11 h1:kpFauv27b6ynzBNT/Xy+1k+fK4WswhN/6PN5WhFAGw8=

View File

@@ -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
}