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
fwupd: do not wrap efi capsule #45719
Conversation
wrapGAppsHook is not able to skip efi capsules so we need to switch to manual wrapping. Closes: NixOS#45715
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: fwupd Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: fwupd Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: fwupd Partial log (click to expand)
|
too late, but a simpler alternative would have to remove the executable bit from the capsule before the fixup phase: diff --git a/pkgs/os-specific/linux/firmware/fwupd/default.nix b/pkgs/os-specific/linux/firmware/fwupd/default.nix
index f018b5c2a7d..d2610dfc8fd 100644
--- a/pkgs/os-specific/linux/firmware/fwupd/default.nix
+++ b/pkgs/os-specific/linux/firmware/fwupd/default.nix
@@ -52,6 +52,8 @@ in stdenv.mkDerivation {
# doCheck = true;
preFixup = ''
+ chmod -x $out/libexec/fwupd/efi/fwupdx64.efi
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
'';
If this bit is really necessary, then it can be readded in postfixup. |
If I recall correctly, EFI uses FAT or something so executable bit probably should not be needed. Maybe @superm1 will know for sure. |
If you follow the strict specifications yes ESP needs to be vfat. I think removing executable bit is fine. |
Motivation for this change
wrapGAppsHook is not able to skip efi capsules so we need to switch to manual wrapping.
Closes: #45715
cc @tadfisher @Moredread
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)