Skip to content

cmdlib: Don't dump serial console to stdout#1392

Merged
openshift-merge-robot merged 1 commit intocoreos:masterfrom
cgwalters:runvm-quiet
Apr 27, 2020
Merged

cmdlib: Don't dump serial console to stdout#1392
openshift-merge-robot merged 1 commit intocoreos:masterfrom
cgwalters:runvm-quiet

Conversation

@cgwalters
Copy link
Copy Markdown
Member

In #1338
we fixed the problem of having one's terminal be corrupted
by the serial console.

This fixes the same problem for cosa build which ends up
running a VM too. First, there's no real reason to dump
the kernel bootup output to the terminal (or build logs) - it's
totally uninteresting stuff that we only want to see if
something fails.

Gather the serial console to one log file, and the output of
the command we run in the VM to another. Fork off a
tail process to follow just the command output. (When
we rewrite this in a better language we will do this properly
async)

Copy link
Copy Markdown
Member

@jlebon jlebon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No more messed up terminal = win!

Comment thread src/cmdlib.sh Outdated
Comment thread src/cmdlib.sh
Comment thread src/cmdlib.sh
In coreos#1338
we fixed the problem of having one's terminal be corrupted
by the serial console.

This fixes the same problem for `cosa build` which ends up
running a VM too.  First, there's no real reason to dump
the kernel bootup output to the terminal (or build logs) - it's
totally uninteresting stuff that we only want to see if
something fails.

Gather the serial console to one log file, and the output of
the *command* we run in the VM to another.  Fork off a
`tail` process to follow just the command output.  (When
we rewrite this in a better language we will do this properly
async)
@jlebon
Copy link
Copy Markdown
Member

jlebon commented Apr 27, 2020

Tested this locally too. Thanks!
/lgtm

@openshift-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cgwalters, jlebon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-robot openshift-merge-robot merged commit 8480daf into coreos:master Apr 27, 2020
@dustymabe
Copy link
Copy Markdown
Member

possible fallout: coreos/fedora-coreos-config#365 (comment)

@jlebon
Copy link
Copy Markdown
Member

jlebon commented Apr 27, 2020

Follow-up: #1403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants