xen: switch to seabios-qemu, use absolute path to firmware

Related: #342692
Signed-off-by: Fernando Rodrigues <alpha@sigmasquadron.net>
This commit is contained in:
Fernando Rodrigues 2024-10-18 02:48:11 +00:00
parent cc8d8ff109
commit d175e88817
No known key found for this signature in database
GPG Key ID: CC3AE2EA00000000

View File

@ -30,7 +30,8 @@
zstd,
# Optional Components
seabios,
seabios-qemu,
systemSeaBIOS ? seabios-qemu,
OVMF,
ipxe,
checkpolicy,
@ -261,7 +262,7 @@ stdenv.mkDerivation (finalAttrs: {
"--enable-systemd"
"--disable-qemu-traditional"
"--with-system-qemu"
(if withSeaBIOS then "--with-system-seabios=${seabios}/share/seabios" else "--disable-seabios")
(if withSeaBIOS then "--with-system-seabios=${systemSeaBIOS.firmware}" else "--disable-seabios")
(if withOVMF then "--with-system-ovmf=${OVMF.firmware}" else "--disable-ovmf")
(if withIPXE then "--with-system-ipxe=${ipxe}" else "--disable-ipxe")
(enableFeature withFlask "xsmpolicy")