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
kernel-install 90-uki-copy.install fails with ... is missing .efi suffix.
#26477
Comments
cc @behrmann |
IIUC isn't this a mkinitcpio issue? The resulting files should be stored in |
I was under the impression that that is only optional and that the initrd generator can do whatever they want including installing the image to where they wish. |
This is something to be fixed in mkinitcpio and is mostly an artifact that we reused the name |
Okay that works, not sure if there is a mkinitcpio bug about this yet or not. I have added this to the wiki. |
Cool, thanks! I'll submit a MR to address this to mkinitcpio on Monday. |
I just created a issue for mkinicpio: https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/issues/163 |
I think this bug can be closed now, since this has a pending fix downstream |
Ok, let's close this then. |
Systemd provides a kernel-install staging directory but it was not used because the artifacts were not automatically copied from the staging location to the final EFI folder. Systemd 253 includes a new [90-uki-copy.install](https://github.com/systemd/systemd/blob/main/src/kernel-install/90-uki-copy.install) script which expects the image in the staging directory and copies it to EFI/Linux. The uki-copy script will fail if the file does not exist. To fix this the uki image is now written to the staging folder and the uki-copy script puts it afterwards in the right location. This will only work with systemd 253 and later. Systemd commit: systemd/systemd@0ccfd35 Systemd bug: systemd/systemd#26477 Fixes #163
systemd version the issue has been seen with
core/systemd 253-1 [installed]
Used distribution
Arch
Linux kernel version used
6.1.12-arch1-1
CPU architectures issue was seen on
x86_64
Component
kernel-install
Expected behaviour you didn't see
90-uki-copy.install
shouldn't fail when the mkinitcpio hook generates the uki image to the proper place.Unexpected behaviour you saw
Steps to reproduce the problem
When the layout is set to uki the 90-uki-copy.install fails with
Error: /usr/lib/modules/6.1.11-hardened1-1-hardened/vmlinuz is missing .efi suffix.
, when the initramfs generation generates the uki image directly to the destination<esp>/EFI/Linux/<target>
. 90-uki-copy shouldn't fail when the mkinitcpio hook generates the uki image to the proper place, and there is nothing to be copied by 90-uki-copy.Additional program output to the terminal or log subsystem illustrating the issue
No response
The text was updated successfully, but these errors were encountered: