Skip to content

Conversation

@ilyaluk
Copy link
Contributor

@ilyaluk ilyaluk commented Nov 13, 2025

tdx-init version is forward-incompatible, so those images would need to get fresh persistent disks.

They support disk upsizing though.

best viewed per-commit

  • backport: fix cmake hangs on macos under rosetta
  • backport: kernel: fix macos rosetta reproducibility
  • bob-common: bump tdx-init version
  • bob-l1: include trixie-backports for rust 1.89
  • bob-l1: bump lighthouse to 8.0.0
  • bob-l1: move readme, clarify image measurements

@ilyaluk ilyaluk requested review from alexhulbert, astarinmymind and Copilot and removed request for Copilot November 13, 2025 15:59
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the tdx-init version from v0.1.1 to v0.3.0 (a forward-incompatible change requiring fresh persistent disks) and enhances documentation with a clarifying note about image measurements tied to specific commits.

Key Changes:

  • Bumped tdx-init version to v0.3.0 in bob-common build configuration
  • Added measurement reproducibility guidance in bob-l1 readme

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
bob-common/mkosi.build Updates tdx-init dependency from v0.1.1 to v0.3.0
bob-l1/readme.md Adds note about commit-specific measurements for reproducibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ilyaluk ilyaluk force-pushed the ilya/bob-l1-updates branch 9 times, most recently from 3aea2d2 to 359c931 Compare November 13, 2025 17:50
@ilyaluk ilyaluk changed the title BoB L1: new tdx-init, readme updates BoB L1: new tdx-init, LH 8.0.0 Nov 13, 2025
@ilyaluk ilyaluk force-pushed the ilya/bob-l1-updates branch from 359c931 to c05c1f0 Compare November 13, 2025 19:04
@ilyaluk ilyaluk marked this pull request as ready for review November 13, 2025 19:05
@ilyaluk ilyaluk force-pushed the ilya/bob-l1-updates branch from ed63823 to efde407 Compare November 14, 2025 13:38
Copy link
Member

@alexhulbert alexhulbert left a comment

Choose a reason for hiding this comment

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

Nice

make_git_package \
"lighthouse" \
"v7.1.0" \
"v8.0.0" \
Copy link
Member

Choose a reason for hiding this comment

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

The lighthouse build process can be simplified starting with v8 like so: https://github.com/flashbots/flashbots-images/pull/38/files#diff-3c7f2c5d727d89202366ab0b86107555d64c34fed340037e8204c3f8959d80e7R28-R38

I'll make the necessary changes to this PR to get it working

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

@@ -0,0 +1,6 @@
Types: deb deb-src
URIs: https://snapshot.debian.org/archive/debian/20251113T083151Z
Copy link
Member

Choose a reason for hiding this comment

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

I'm slightly leaning towards a mkosi.* script so that we don't have to hard code the timestamp twice. What do you think? We could also just make this part of the base module. Everything should have backports, especially since it can help us avoid using rustup throughout the repo since it nontrivially slows down builds, depends on network access, and downloads untrusted binaries.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, adding backports repo via mkosi.conf is not supported at the moment (or I could not figure it out). I assume that's becuase backports is a different suite. There's upstream issue about this, afaiu: systemd/mkosi#1755

Also, we can't add it via scripts (e.g. systemd/mkosi#3439), because build packages installation happens in sandbox, not image itself.


# Build fluent-bit
BUILD_CMD="
# Install cmake 3.28 to fix build issues on Apple Silicon hosts
Copy link
Member

Choose a reason for hiding this comment

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

Fluent bit is not reproducible on apple silicon, so if we want to target that platform, we need to grab it from the official .deb file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, I see. Feel free to rollback this, not sure if there's use case for building bob images on apple silicon

git
gcc
cargo
cargo/trixie-backports
Copy link
Member

Choose a reason for hiding this comment

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

Nice, i will look for other places we're using rustup in the repo to get newer version of rust and switch them out for this technique now that the backports version is new enough


mkosi-chroot --chdir "/build/kernel-${KERNEL_VERSION}" make olddefconfig
mkosi-chroot --chdir "/build/kernel-${KERNEL_VERSION}" make -j "$(nproc 2>/dev/null || echo 2)" bzImage ARCH=x86_64 CONFIG_EFI_STUB=y
mkosi-chroot --chdir "/build/kernel-${KERNEL_VERSION}" make -j "$(nproc 2>/dev/null || echo 2)" bzImage ARCH=x86_64 CONFIG_EFI_STUB=y LDFLAGS="-Wl,--build-id=none"
Copy link
Member

Choose a reason for hiding this comment

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

Did this do anything? I vaguely recall trying these exact LDFLAGS before I left for vacation and iirc it didn't fix anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, I don't think I've built without this flag. I've seen this commit in your branch and backported it, assuming you've added them for a reason 😄

Copy link
Member

Choose a reason for hiding this comment

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

oh yeah meant to revert that before leaving for vacation, it didn't do anything

@ilyaluk ilyaluk force-pushed the ilya/bob-l1-updates branch from efde407 to 2cf8e72 Compare November 25, 2025 13:56
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