knownVulnerabilities=lib.lists.optional(lib.strings.versionOlderversionminSupportedVersion)"Xen ${version} is no longer supported by the Xen Security Team. See https://xenbits.xenproject.org/docs/unstable/support-matrix.html";
knownVulnerabilities=lib.lists.optional(lib.strings.versionOlderversionminSupportedVersion)"Xen ${version} is no longer supported by the Xen Security Team. See https://xenbits.xenproject.org/docs/unstable/support-matrix.html";
finalSeaBIOSVersion="$(echo"$fetchSeaBIOS" | tr', ''\n ' | grep-ie rev | sed s/' "rev": "'//g | sed s/'"'//g)"
seaBIOSHash="$(echo"$fetchSeaBIOS" | tr', ''\n ' | grep-iehash | sed s/' "hash": "'//g | sed s/'"'//g)"
echo"done!"
echo-e-n" \e[1;36mOVMF\e[0m..."
ovmfHash="$(nix-prefetch-git --url https://xenbits.xen.org/git-http/ovmf.git --rev"$ovmfVersion"--quiet--fetch-submodules | grep-iehash | sed s/' "hash": "'//g | sed s/'",'//g)"
ovmfHash="$(nix-prefetch-git --url https://xenbits.xenproject.org/git-http/ovmf.git --rev"$ovmfVersion"--quiet--fetch-submodules | grep-iehash | sed s/' "hash": "'//g | sed s/'",'//g)"
echo"done!"
echo-e-n" \e[1;36miPXE\e[0m..."
ipxeHash="$(nix-prefetch-git --url https://github.com/ipxe/ipxe.git --rev"$ipxeVersion"--quiet | grep-iehash | sed s/' "hash": "'//g | sed s/'",'//g)"
@@ -120,13 +127,13 @@ for version in "${supportedVersions[@]}"; do
echo-e"Found the following patches:\n\e[1;32mXen\e[0m: \e[1;33m$discoveredXenPatchesEcho\e[0m\n\e[1;36mQEMU\e[0m: \e[1;33m$discoveredQEMUPatchesEcho\e[0m\n\e[1;36mSeaBIOS\e[0m: \e[1;33m$discoveredSeaBIOSPatchesEcho\e[0m\n\e[1;36mOVMF\e[0m: \e[1;33m$discoveredOVMFPatchesEcho\e[0m\n\e[1;36miPXE\e[0m: \e[1;33m$discoveredIPXEPatchesEcho\e[0m"
# Prepare patches that are called in ./patches.nix.
read-r-a defaultPatchList -p$'\nWould you like to override the \e[1;34mupstreamPatches\e[0m list for \e[1;32mXen '"$version"$'\e[0m? If no, press \e[1;34menter\e[0m to use the default patch list: [ \e[1;34m'"${defaultPatchListInit[*]}"$' \e[0m]: '