-
Notifications
You must be signed in to change notification settings - Fork 291
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
Better cater to outputs for systemd-sysupdate
#2024
Comments
x-ref: systemd/systemd#29722 |
@septatrix We automatically do the roothash/usrhash stuff in mkosi when required. This isn't documented but please check the sources |
Okay I found it. Is there any reason for not doing it for partitions without a hash, i.e. why use |
@septatrix Because we generally want to rely on systemd-gpt-auto-generator instead of explicit |
systemd-gpt-auto-generator however reaches its limits when finding the root partition belonging to a UKI if it is writeable. In those cases |
If you do not plan to support that usecase please feel free to close this issue. I will likely manage with the small patch of replacing |
I think I got most of this running as expected. One thing came up, however: sysupdate wishes for the partuuids to be included in the filename |
Or is this something which should be implemented in repart itself? E.g. if a partition definition has a |
Another thing I noticed and wasted way too much time on to figure out. The final filename of the split partitions depends on the name of the loopback device and the It would be great if the separator would instead be an underscore (to archive the same syntax as shown in the sysupdate man page |
It has just come to my attention that Ubuntu no longer ships with systemd-gpt-auto-generator since 253.5-1ubuntu5. I have filed a bug upstream* though if they are unwilling to revert the change this will no longer work for Ubuntu. *downstream? Upstream of mkosi but downstream of systemd/Debian :D |
We're working with the ubuntu systemd maintainer to get it added back for the next LTS release. |
There's a large post here covering UKI naming, but it also spans into other |
I have to retract my statement above. I mis-configured and had |
When using systemd-sysupdate in an A/B style, the UKIs needs to know which partition to boot to. This can be achieved by setting the roothash or usrhash kernel command line option and labeling the partition fittingly. However, there is no way to model this in mkosi with the static
KernelCommandLine=
option.It is already possible to split the base system and united generation into two different presets/images and have one depend on the other though this is pretty much where I am stuck currently. Having mkosi better support this use case would allow one to pretty much implement everything from Lennarts "fitting everything together" post with mkosi.
There is also the problem that depending on the sysupdate.d setup the partition files generated when
SplitArtifacts=true
should include parts of the hash but that can be implemented with some rather trivial scripting. Bundling, signing and all the other steps for generating a UKI though are way harder to script.The text was updated successfully, but these errors were encountered: