build.sh: freeze grub2 to fix PXE + UEFI tests
The `pxe-install` build started failing after grub2-2.06-67.fc37 entered
cosa:
Loading kernel
error: ../../grub-core/fs/fshelp.c:257:file
`/rhcos-413.86.202211301346-0-live-kernel-x86_64' not found.
Possibly the same root cause as
Freeze on the previous version for now until we figure this out.
@@ -41,9 +41,15 @@ install_rpms() {
local builddeps
local frozendeps
- # no frozen deps right now
frozendeps=""
+ # freeze grub2 for https://github.com/coreos/fedora-coreos-tracker/issues/1352
+ case "${arch}" in
+ x86_64) frozendeps=$(echo grub2-{common,efi-x64,pc,pc-modules,tools,tools-extra,tools-minimal}-1:2.06-63.fc37);;
+ aarch64) frozendeps=$(echo grub2-{common,efi-aa64,tools,tools-extra,tools-minimal}-1:2.06-63.fc37);;
+ *) ;;
+ esac
+
# First, a general update; this is best practice. We also hit an issue recently
# where qemu implicitly depended on an updated libusbx but didn't have a versioned
# requires https://bugzilla.redhat.com/show_bug.cgi?id=1625641
