-
Notifications
You must be signed in to change notification settings - Fork 29
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
support dynamically extending/adding update payloads #766
Comments
Is this something that teach bootupctl to read config for example:
then it will get Or maybe make bootc to read the config file and get Not sure if my understanding is correct. Any suggestions? Thanks! |
So one thing heavily related to this is today rpm-ostree in "unified core" mode automatically redirects content in
But In theory though, it would be nicer to represent e.g. shim+grub as a distinct payload from these other blobs? Doing that though...hmm, I guess the cleanest way would be for shim+grub to explicitly flag themselves as a unit, or we teach bootc to recognize those directly? |
For automotive we need more than just put stuff in /boot. For example, if android boot is used, then the boot dir will contain an aboot.img file, and this needs to be written to the boot_a partition. We do ship tools to do the writing, but we need to have a place to hook in callouts to those commands with the right arguments. |
Yeah, bootupd abstracts today over the (GRUB) MBR/BIOS case which is a dedicated partition. But this is all hardcoded (in Rust) in this project. Adding more bootloaders here I think wouldn't be hard, and the code was definitely designed to enable it. But, maybe we could in theory try to rework things such that we have (Unfortunately we do need to think about cases like disk images bootable with both grub BIOS as well as UEFI, so there are conceptually two. But OTOH today that case is grub for both, so maybe we could collapse that into just "grub" conceptually and always update both) |
See this https://github.com/ondrejbudai/fedora-bootc-raspi/blob/cbff66a8bdb82b6276814765ffdb82c4ec4efa9c/bootupctl-shim#L7
Basically today the bootloader update payload is often part of the base image, but we need to support dynamically extending it with layered image content as well.
In the short term, what may suffice is to offer an explicit user-hookable phase that can copy things from the container to
/boot
as part ofbootc install to-filesystem
.The text was updated successfully, but these errors were encountered: