Skip to content

Commit

Permalink
Merge pull request nix-community#643 from MatthewCroughan/mc/ovmf
Browse files Browse the repository at this point in the history
make-disk-image: use OVMF efi always
  • Loading branch information
Lassulus authored May 21, 2024
2 parents 6f01b97 + 6c37763 commit f1654e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/make-disk-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ let
${systemToInstall.config.system.build.nixos-install}/bin/nixos-install --root ${systemToInstall.config.disko.rootMountPoint} --system ${systemToInstall.config.system.build.toplevel} --keep-going --no-channel-copy -v --no-root-password --option binary-caches ""
umount -Rv ${systemToInstall.config.disko.rootMountPoint}
'';
QEMU_OPTS = lib.concatMapStringsSep " " (disk: "-drive file=${disk.name}.raw,if=virtio,cache=unsafe,werror=report,format=raw") (lib.attrValues nixosConfig.config.disko.devices.disk);

QEMU_OPTS = "-drive if=pflash,format=raw,unit=0,readonly=on,file=${pkgs.OVMF.firmware}" + " " + (lib.concatMapStringsSep " " (disk: "-drive file=${disk.name}.raw,if=virtio,cache=unsafe,werror=report,format=raw") (lib.attrValues nixosConfig.config.disko.devices.disk));
in
{
pure = vmTools.runInLinuxVM (pkgs.runCommand name
Expand Down

0 comments on commit f1654e0

Please sign in to comment.