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

feat: add iPXE build with embedded placeholder script #267

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

smira
Copy link
Member

@smira smira commented Apr 27, 2021

This builds iPXE with HTTPS enabled, and embedded placeholder script
which is to be replaced with the real script during Sidero
metal-controller-manager bootstrap.

Signed-off-by: Andrey Smirnov [email protected]

This builds iPXE with HTTPS enabled, and embedded placeholder script
which is to be replaced with the real script during Sidero
metal-controller-manager bootstrap.

Signed-off-by: Andrey Smirnov <[email protected]>
@smira
Copy link
Member Author

smira commented Apr 27, 2021

/approve

finalize:
- from: /rootfs
to: /
# Generating .kpxe via zbin:
Copy link
Member

Choose a reason for hiding this comment

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

is that some leftovers?

Copy link
Member Author

Choose a reason for hiding this comment

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

no, that is doc on how to generate .kpxe..

so the thing is that we want to patch binary in place, but .kpxe is lzma-compressed; so we generate uncompressed version, a tool to generate compressed version, and we patch uncompressed version and compress it on the fly; thsee are the steps to compress the uncompressed version to build final .kpxe

@smira
Copy link
Member Author

smira commented Apr 27, 2021

/lgtm

@talos-bot talos-bot merged commit f87c194 into siderolabs:master Apr 27, 2021
smira added a commit to smira/sidero that referenced this pull request Apr 27, 2021
Fixes siderolabs#227

See also siderolabs/pkgs#267

The rough idea is that iPXE binaries we're building contain placeholder
script which is replaced on the fly with the actual script which depends
on Sidero API endpoint. Patching is a bit tricky for `undionly.kpxe`, as
it is compressed, so we patch uncompressed version and compress the
final asset after that.

Signed-off-by: Andrey Smirnov <[email protected]>
smira added a commit to smira/sidero that referenced this pull request Apr 27, 2021
Fixes siderolabs#227

See also siderolabs/pkgs#267

The rough idea is that iPXE binaries we're building contain placeholder
script which is replaced on the fly with the actual script which depends
on Sidero API endpoint. Patching is a bit tricky for `undionly.kpxe`, as
it is compressed, so we patch uncompressed version and compress the
final asset after that.

Signed-off-by: Andrey Smirnov <[email protected]>
smira added a commit to smira/sidero that referenced this pull request Apr 27, 2021
Fixes siderolabs#227

See also siderolabs/pkgs#267

The rough idea is that iPXE binaries we're building contain placeholder
script which is replaced on the fly with the actual script which depends
on Sidero API endpoint. Patching is a bit tricky for `undionly.kpxe`, as
it is compressed, so we patch uncompressed version and compress the
final asset after that.

Signed-off-by: Andrey Smirnov <[email protected]>
smira added a commit to smira/sidero that referenced this pull request May 4, 2021
Fixes siderolabs#227

See also siderolabs/pkgs#267

The rough idea is that iPXE binaries we're building contain placeholder
script which is replaced on the fly with the actual script which depends
on Sidero API endpoint. Patching is a bit tricky for `undionly.kpxe`, as
it is compressed, so we patch uncompressed version and compress the
final asset after that.

Signed-off-by: Andrey Smirnov <[email protected]>
talos-bot pushed a commit to siderolabs/sidero that referenced this pull request May 5, 2021
Fixes #227

See also siderolabs/pkgs#267

The rough idea is that iPXE binaries we're building contain placeholder
script which is replaced on the fly with the actual script which depends
on Sidero API endpoint. Patching is a bit tricky for `undionly.kpxe`, as
it is compressed, so we patch uncompressed version and compress the
final asset after that.

Signed-off-by: Andrey Smirnov <[email protected]>
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.

3 participants