Skip to content

Commit

Permalink
mantle/kola: change console logging karg for COSA_TESTISO_DEBUG=1
Browse files Browse the repository at this point in the history
As suggested by jlebon this will make sure the journal itself goes
to the console as well.
  • Loading branch information
dustymabe authored and jlebon committed Sep 17, 2024
1 parent 41e5c4a commit 5327a22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mantle/cmd/kola/testiso.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ func testLiveIso(ctx context.Context, inst platform.Install, outdir string, mini
// When you are debugging earlyboot/initramfs issues this can be
// problematic. Let's add a hook here to enable more debugging.
if _, ok := os.LookupEnv("COSA_TESTISO_DEBUG"); ok {
isoKernelArgs = append(isoKernelArgs, "systemd.log_color=0 systemd.log_level=debug systemd.log_target=console")
isoKernelArgs = append(isoKernelArgs, "systemd.log_color=0 systemd.log_level=debug systemd.journald.forward_to_console=1")
}

mach, err := inst.InstallViaISOEmbed(isoKernelArgs, liveConfig, targetConfig, outdir, isOffline, minimal)
Expand Down

0 comments on commit 5327a22

Please sign in to comment.