-
Notifications
You must be signed in to change notification settings - Fork 187
metal: add new virtio-channel for switching boot order #1777
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
metal: add new virtio-channel for switching boot order #1777
Conversation
Following up on comment in coreos#1700 to split the functionality to trigger the boot order switch to metal.go making it generic.
cgwalters
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I can tell we're sending the signal and switching the boot order unconditionally on the firstboot. If that's all we need I think we already can do that because e.g. the virtio journal connection also shows we booted successfully.
Hmm right but the virtio journal connection lives in testiso.go too. Maybe it makes sense to drain that whole thing into metal.go?
If you've tested this I'm ok to merge as is as well, we can always improve more on followups. And thanks for taking this on!
|
Interesting....I'm with @cgwalters on having this all in one place. But I would rather have the test in the first place. LGTM |
that can be done - but i'll have to pull in adding the live signal and testiso completion units to metal too along with the journal connection..is that desirable ? |
ok..never mind the above comment..i got it working by just checking for the virtio journal as suggested, but had to change the systemd unit to be similar to the live signal unit by adding dependency on coreos-installer target for the pxe case https://github.com/coreos/coreos-assembler/blob/master/mantle/cmd/kola/testiso.go#L102 I'm not sure we want to do that? is there any other way to make it run on first boot for the pxe case? |
@cgwalters ^^ thoughts? |
|
/approve |
thanks ! yeah this works. good to lgtm |
|
/lgtm Restarted CI on this to be safe. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, jlebon, Prashanth684 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Following up on comment in #1700 to split the functionality to trigger the boot order
switch to metal.go making it generic.