logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: c748766fac7f46a1fa6b7a7e6cad5fad4c69bd72
parent 221f2d0f8eabd58d73159ef8cc71eead19532840
Author: Gábor Stefanik <netrolller.3d@gmail.com>
Date:   Wed, 24 Jan 2024 00:10:37 +0100

Switch Fiwix's console to tty1 on bare metal

This is needed to make the monitoring/recovery shell on tty2 work,
as the default console is tty0, which will just print to whichever
virtual console is active at the moment, making the shell unusable.

Diffstat:

Msteps/kexec-fiwix-1.0/kexec-fiwix-1.0.checksums2+-
Msteps/kexec-fiwix-1.0/src/kexec-fiwix.c2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/steps/kexec-fiwix-1.0/kexec-fiwix-1.0.checksums b/steps/kexec-fiwix-1.0/kexec-fiwix-1.0.checksums @@ -1 +1 @@ -f8c754de5bd9cf5a1b36dfea25e81f7b39c4e0145e10eebafccc8cdca5be91bd /usr/bin/kexec-fiwix +d4f502384ab723ae4b3bf33e8024a93c71cba8481f8065182a8f21ffff0fbd6d /usr/bin/kexec-fiwix diff --git a/steps/kexec-fiwix-1.0/src/kexec-fiwix.c b/steps/kexec-fiwix-1.0/src/kexec-fiwix.c @@ -82,7 +82,7 @@ int main() { char *bare_metal = getenv("BARE_METAL"); if (bare_metal != NULL && strcmp(bare_metal, "True") == 0) { - sprintf(cmdline, "fiwix root=/dev/ram0 ramdisksize=%d initrd=fiwix.ext2 kexec_proto=linux kexec_size=%d kexec_cmdline=\"init=/init consoleblank=0\"", INITRD_MB * 1024, KEXEC_MB * 1024); + sprintf(cmdline, "fiwix console=/dev/tty1 root=/dev/ram0 ramdisksize=%d initrd=fiwix.ext2 kexec_proto=linux kexec_size=%d kexec_cmdline=\"init=/init consoleblank=0\"", INITRD_MB * 1024, KEXEC_MB * 1024); } else {