Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kola/qemu: Support injecting kernel network arguments #1219

Merged
merged 2 commits into from
Mar 6, 2020

Conversation

cgwalters
Copy link
Member

@cgwalters cgwalters commented Mar 5, 2020

This is useful for quickly testing static IP addresses on the
kernel cmdline without actually having to catch the GRUB
prompt or go through a whole series of coreos-installer iso embed
etc.

@cgwalters cgwalters changed the title Run kargs kola/qemu: Support injecting kernel network arguments Mar 5, 2020
@@ -277,70 +280,99 @@ func findLabel(label, pid string) (string, error) {
return strings.TrimSpace(string(stdout)), nil
}

// setupIgnition copies the ignition file inside the disk image.
func setupIgnition(confPath string, diskImagePath string) error {
type coreosGuestfish struct {
Copy link
Member Author

Choose a reason for hiding this comment

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

Also factored out a guestfish API since I originally started to make it a separate function.

This is useful for quickly testing static IP addresses on the
kernel cmdline without actually having to catch the GRUB
prompt or go through a whole series of `coreos-installer iso embed`
etc.
@cgwalters
Copy link
Member Author

Rebased 🏄‍♂️

@ashcrow
Copy link
Member

ashcrow commented Mar 6, 2020

/lgtm

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

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

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

The pull request process is described here

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

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.

None yet

4 participants