OVMF: Restore installation of OVMF.fd.

I accidentally removed this in f6fc51d (I missed the leading comma on
line 160), which was merged as part of #284874

This should be removed eventually, but it should be done intentionally
with proper release notes.
This commit is contained in:
Shea Levy 2024-02-26 07:55:55 -05:00
parent 3cfe62d85a
commit 6edee624d0
No known key found for this signature in database
GPG key ID: 5C0BD6957D86FE27

View file

@ -154,9 +154,14 @@ edk2.mkDerivation projectDscPath (finalAttrs: {
)
'';
# TODO: Usage of -bios OVMF.fd is discouraged: https://lists.katacontainers.io/pipermail/kata-dev/2021-January/001650.html
# We should remove the isx86-specifc block here once we're ready to update nixpkgs to stop using that and update the
# release notes accordingly.
postInstall = ''
mkdir -vp $fd/FV
mv -v $out/FV/${fwPrefix}_{CODE,VARS}.fd $fd/FV
'' + lib.optionalString stdenv.hostPlatform.isx86 ''
mv -v $out/FV/${fwPrefix}.fd $fd/FV
'' + lib.optionalString msVarsTemplate ''
mv -v $out/FV/${fwPrefix}_VARS.ms.fd $fd/FV
ln -sv $fd/FV/${fwPrefix}_CODE{,.ms}.fd