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

Platform ID for bare-metal images (raw GPT disk) #142

Closed
lucab opened this issue Jan 31, 2019 · 4 comments
Closed

Platform ID for bare-metal images (raw GPT disk) #142

lucab opened this issue Jan 31, 2019 · 4 comments

Comments

@lucab
Copy link
Contributor

lucab commented Jan 31, 2019

#91 is tracking progress on a bare-metal installer, based on dd-ing a raw GPT image to disk.

As prerequisite for that, coreos-assembler pipeline has to start producing such a raw GPT disk image. Currently, CL has coreos_production_image.bin.bz2 which is mostly equivalent to this and consumed by coreos-install.

Before doing that, we should allocate a platform ID so that we are not losing static information when moving from buildtime to runtime. Software on those nodes can introspect that ID to detect the environment they are in and apply conditional logic (e.g. Ignition config fetcher).

I think there may be a few factors that may affect the granularity of this bare-metal ID, such as:

  • Boot method (BIOS, UEFI or a dual-image for both)
  • Measured boot (on UEFI with TPM, whether the node is performing boot measurement/attestation)
  • Multiple kinds of images (will we need to produce and distinguish different geometries in the future?)
@bgilbert
Copy link
Contributor

I agree that we should have a distinct platform ID for bare metal.

BIOS/UEFI, measured boot on/off, and 512b/4Kn disks all strike me as options within a platform, rather than fundamentally different platforms. By analogy, AWS images may run on multiple virtualization types (HVM vs. PV) and multiple hypervisors, but CL has only one OEM ID for them.

@cgwalters
Copy link
Member

PR in coreos/coreos-assembler#339

@dustymabe
Copy link
Member

issue against ignition to add this: coreos/ignition#724

@dustymabe
Copy link
Member

a 'metal' platform id was added to ignition in coreos/ignition#732 - It will filter down into FCOS in the next ignition release. Closing this out for now.

jlebon pushed a commit to cgwalters/coreos-assembler that referenced this issue Apr 9, 2019
jlebon pushed a commit to cgwalters/coreos-assembler that referenced this issue Apr 9, 2019
cgwalters added a commit to coreos/coreos-assembler that referenced this issue Apr 9, 2019
jlebon pushed a commit to jlebon/coreos-assembler that referenced this issue Apr 15, 2019
cgwalters added a commit to coreos/coreos-assembler that referenced this issue Apr 15, 2019
ashcrow pushed a commit to ashcrow/coreos-assembler that referenced this issue May 30, 2019
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

No branches or pull requests

4 participants