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

UKI/systemd-boot tracker #806

Open
cgwalters opened this issue Sep 27, 2024 · 0 comments
Open

UKI/systemd-boot tracker #806

cgwalters opened this issue Sep 27, 2024 · 0 comments
Labels
area/client Related to the client/CLI area/install Issues related to `bootc install`

Comments

@cgwalters
Copy link
Collaborator

cgwalters commented Sep 27, 2024

systemd-boot has a lot of uptake and is very simple for the UEFI path. We need to support it.

One thing this deeply intersects with is ostreedev/ostree#2753 and ostreedev/ostree#1951 as well as #20

I think with the new containers/composefs#332 we could try doing a "big bang" where we:

  • Teach bootloader.rs how to detect and install systemd-boot (trivial)
  • Have a mode where we basically drop all the ostree stuff out of the container image...we make a merged composefs client side from the container image content and for good measure just do all the selinux labeling client side to start (ref OCI SELinux labeling mismatch when package only ships binary policy - greetd is broken ostreedev/ostree-rs-ext#510 - though we could also start honoring security.selinux in the tar stream)
  • Deploying an image also copies the UKI out into the ESP (and we use the UKIs as a garbage collection root for the objects)
  • For /etc it is tempting to try switching to what flatcar does by default where we change to using an overlayfs for /etc with the lowerdir, but we could also automatically do the /usr/etc handling in our image (reusing the ostree code...either way); a challenge in this is we document configuring things in ostree-prepare-root.conf today but we could start parsing those options in bootc instead.
  • We could hence then potentially start by dropping ostree-prepare-root.service from the initramfs and have a spike on what it'd look like to move the mount logic in the initramfs maybe in this project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/client Related to the client/CLI area/install Issues related to `bootc install`
Projects
None yet
Development

No branches or pull requests

1 participant