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

create_disk: Use target EFI binaries #901

Merged
merged 1 commit into from
Nov 8, 2019
Merged

Conversation

cgwalters
Copy link
Member

This is analogous to
#652

We were hardcoding fedora here, pulling the EFI binaries
from the coreos-assembler container. Change to installing
the target EFI binaries instead.

First, I verified this produces the same output
and cosa run --uefi-secure still works with FCOS.

But, this fixes cosa run --uefi-secure with RHCOS, and ensures
we're installing the RHEL8 EFI binaries.

Conceptually now, the only "traces" or "influence" that the
coreos-assembler content has on the target system will (should) be
in the created filesystem structure (i.e. what mkfs.xfs does on
disk), but not the actual contents of any files.

@cgwalters
Copy link
Member Author

But, this fixes cosa run --uefi-secure with RHCOS

Which in turn is part of the dependency chain for coreos/mantle#1060

@cgwalters
Copy link
Member Author

(I have some bigger questions around this...I notice we've been omitting e.g. shim; I think this will break installation on hardware that only trusts the Microsoft keys or so? But...something to solve separately from this)

@cgwalters
Copy link
Member Author

cgwalters commented Nov 7, 2019

error: package efivar-libs-37-1.fc30.x86_64 cannot be verified and repo fedora-coreos-pool is GPG enabled: failed to lookup digest in keyring for /proc/self/fd/9/cache/repomd/fedora-coreos-pool-31-x86_64/packages/efivar-libs-37-1.fc30.x86_64.rpm

I think we talked about this yesterday but didn't root cause it?

Clearly unrelated though, someone mind taking a look at this PR?

@jlebon
Copy link
Member

jlebon commented Nov 7, 2019

I think we talked about this yesterday but didn't root cause it?

Yeah, I'll take this.

@jlebon
Copy link
Member

jlebon commented Nov 8, 2019

OK, that bug took me on a long journey 🚌.
Anyway, I filed: #907

This is analogous to
coreos#652

We were hardcoding `fedora` here, pulling the EFI binaries
from the coreos-assembler container.  Change to installing
the *target* EFI binaries instead.

First, I verified this produces the same output
and `cosa run --uefi-secure` still works with FCOS.

But, this fixes `cosa run --uefi-secure` with RHCOS, and ensures
we're installing the RHEL8 EFI binaries.

Conceptually now, the only "traces" or "influence" that the
coreos-assembler content has on the target system will (should) be
in the created filesystem structure (i.e. what `mkfs.xfs` does on
disk), but not the actual *contents* of any files.

Closes: openshift/os#383
@cgwalters
Copy link
Member Author

Rebased 🏄‍♂️
Would like to get this one in soon!

Copy link
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.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants