From ab94fc3bd1ad7ba9e46c20d333e7c44cd97ef157 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 13 Nov 2023 18:32:51 -0500 Subject: [PATCH] cloud: Add console kargs This is important for debugging things. Signed-off-by: Colin Walters --- fedora-boot-cloud/Containerfile | 1 + fedora-boot-cloud/usr/lib/bootc/install/05-cloud-kargs.toml | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 fedora-boot-cloud/usr/lib/bootc/install/05-cloud-kargs.toml diff --git a/fedora-boot-cloud/Containerfile b/fedora-boot-cloud/Containerfile index b8f1cb0..227b80a 100644 --- a/fedora-boot-cloud/Containerfile +++ b/fedora-boot-cloud/Containerfile @@ -4,3 +4,4 @@ FROM quay.io/centos-boot/fedora-tier-1-dev:eln RUN dnf -y install cloud-init && \ ln -s ../cloud-init.target /usr/lib/systemd/system/default.target.wants && \ rm /var/log/*.log /var/lib/dnf -rf && ostree container commit +COPY usr usr diff --git a/fedora-boot-cloud/usr/lib/bootc/install/05-cloud-kargs.toml b/fedora-boot-cloud/usr/lib/bootc/install/05-cloud-kargs.toml new file mode 100644 index 0000000..4c071d6 --- /dev/null +++ b/fedora-boot-cloud/usr/lib/bootc/install/05-cloud-kargs.toml @@ -0,0 +1,5 @@ +[install] +# See also: +# - https://github.com/coreos/fedora-coreos-config/blob/testing-devel/platforms.yaml +# - https://github.com/osbuild/images/blob/63a1eead26a7c802dbcebe863439f591be6dc6e5/pkg/distro/rhel9/qcow2.go#L159 +kargs = ["console=tty0", "console=ttyS0,115200n8"]