Skip to content

Commit

Permalink
qemu: fix qboot bios again
Browse files Browse the repository at this point in the history
  • Loading branch information
astro committed May 15, 2023
1 parent dc58e7a commit b973db3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/runners/qemu.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ in {
"-smp" (toString vcpu)
"-enable-kvm"
"-nodefaults" "-no-user-config"
"-bios" "${pkgs.qboot}/bios.bin"
# qemu just hangs after shutdown, allow to exit by rebooting
"-no-reboot"
"-chardev" "stdio,mux=on,id=con0,signal=off"
Expand Down
8 changes: 5 additions & 3 deletions nixos-modules/microvm/options.nix
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,16 @@ in
qemu.bios = {
enable = mkOption {
type = types.bool;
default = pkgs.stdenv.hostPlatform.isx86;
# `qboot` comes out of `pkgsi686Linux` which is only available
# under the following condition:
default = with pkgs.stdenv.hostPlatform; isLinux && isx86;
description = "Enable BIOS argument to qemu.";
};

path = mkOption {
type = types.path;
default = "${pkgs.qboot}/bios.bin";
description = "BIOS binary path";
default = "${pkgs.qboot}/bios.bin";
description = "BIOS binary path";
};
};

Expand Down

0 comments on commit b973db3

Please sign in to comment.