-
-
Notifications
You must be signed in to change notification settings - Fork 11
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 UKI layout #55
Comments
Please try Cleaning UKIs should work (it does for me), the only limitation is that eclean-kernel can only use one layout at the time. There is some auto-detection in place to guess which one you want to use, but it does not always get it right. |
It doesn't seem to work for me:
I'm not sure what the issue is but I can confirm that I don't have that file. |
What version is this? It works fine on my end:
|
eclean-kernel 2.99.8 |
I suppose this is the problem:
|
Yeah, I don't have any of those files. So there seem to be some discrepancy between |
OpenRC machines are not guaranteed to have the machine-id Closes: projg2#55 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
OpenRC machines are not guaranteed to have the machine-id Closes: projg2#55 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
OpenRC machines are not guaranteed to have the machine-id Closes: projg2#55 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Please let me know if this patch resolves your problem: #56 |
Just tried the patch. Sorry, for the delay. It still doesn't work but it fails differently.
|
Okay so now it is detecting the layout properly (so the PR does what it should), but there is something weird with this UKI:
How did you build this, with ukify or dracut? |
I believe it's built with dracut. At least that's what it looks like when the kernel is being installed. I wonder if arch is important here. This is an arm64 box. |
Which version of dracut? And which type of objcopy are you using (binutils or llvm)? It is a known "problem" that dracut creates UKIs that are slightly different then the ones ukify makes. In any case this issue is separate from the layout problem, so @mgorny I think we can merge #56 |
Is there a ticket for that another issue? Do you want me to file one? |
We can re-use this one I think. The interesting thing is that ukify support was implemented here: #47 The particular check that is failing for you now was not touched, suggesting that dracut itself might not be the issue. In essence dracut just uses objcopy to build the UKI, we already know that llvm's objcopy sometimes behaves very different compared to the binutils version, which could be the cause of your problem if you are on an llvm profile. Another possibility is that this |
Oh, I forgot to tell you the versions. dracut: 103-r4 |
I cannot reproduce this on my end. Perhaps the easiest way forward is if you share the problematic UKI with us so I can take a look inside and find out what is different compared to my UKIs. But if you do so then please ensure that there is no private information in the UKI, you can extract the initrd with |
It may be the same problem as #52 (i.e. a zboot problem). Could you try the 9999? A PR was just merged that may address this problem. |
I'm not sure if this should be fixed here or in installkernel. I'd love some input on that from the maintainers.
So, basically, in
efistub
layout installkernel puts kernel into${efi_root}/EFI/Gentoo/
(whereGentoo
part can be configured), but inuki
layout it puts kernel into${efi_root}/EFI/Linux/
(whereLinux
is hardcoded). So eclean-kernel can find some kernel dirs (e.g. with--list-kernels
) but not kernels themselves. It also refuses to remove those dirs because it doesn't find any kernels.The text was updated successfully, but these errors were encountered: