Add path to OVMF.fd for Arch
This commit is contained in:
parent
5b017fb810
commit
93a4065dea
@ -186,7 +186,11 @@ task "run", desc: "Run HOS in QEMU" do
|
|||||||
Dir.mktmpdir do |tmpdir|
|
Dir.mktmpdir do |tmpdir|
|
||||||
img = hello_env.expand("^/HOS.img")
|
img = hello_env.expand("^/HOS.img")
|
||||||
FileUtils.cp(img, tmpdir)
|
FileUtils.cp(img, tmpdir)
|
||||||
sh %W[qemu-system-x86_64 -cpu max -bios OVMF.fd -drive file=#{tmpdir}/HOS.img,format=raw -device qemu-xhci -device usb-tablet]
|
ovmf = "OVMF.fd"
|
||||||
|
if File.exist?("/usr/share/edk2/x64/OVMF.fd")
|
||||||
|
ovmf = "/usr/share/edk2/x64/OVMF.fd"
|
||||||
|
end
|
||||||
|
sh %W[qemu-system-x86_64 -cpu max -bios #{ovmf} -drive file=#{tmpdir}/HOS.img,format=raw -device qemu-xhci -device usb-tablet]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user