Skip to content

Commit 5327a22

Browse files
dustymabejlebon
authored andcommitted
mantle/kola: change console logging karg for COSA_TESTISO_DEBUG=1
As suggested by jlebon this will make sure the journal itself goes to the console as well.
1 parent 41e5c4a commit 5327a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mantle/cmd/kola/testiso.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ func testLiveIso(ctx context.Context, inst platform.Install, outdir string, mini
861861
// When you are debugging earlyboot/initramfs issues this can be
862862
// problematic. Let's add a hook here to enable more debugging.
863863
if _, ok := os.LookupEnv("COSA_TESTISO_DEBUG"); ok {
864-
isoKernelArgs = append(isoKernelArgs, "systemd.log_color=0 systemd.log_level=debug systemd.log_target=console")
864+
isoKernelArgs = append(isoKernelArgs, "systemd.log_color=0 systemd.log_level=debug systemd.journald.forward_to_console=1")
865865
}
866866

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

0 commit comments

Comments
 (0)