Skip to content

Memtest GRUB fixes

Ryan Finnie requested to merge rfinnie/live-build:grub-memtest into master

Previous commits to support Memtest86+ 6.00+ split the files into "memtest" (backwards compatible / new BIOS name) and "memtest.efi" (new EFI name). However, the 6.00 non-EFI binaries are now 32/64-bit, and will not work with GRUB's linux16 boot when using GRUB for BIOS boot.

  • Legacy Memtest86+ pre-6.00 will continue to be "memtest", linux16 (continue to support builds on current Debian stable bullseye)
  • Change 6.00+ filename to "memtest.bin"
  • GRUB memtest.cfg contains logic for legacy / new bios / new EFI
  • Change EFI boot from "chainloader" to "linux", which allows for passing command line options to Memtest86+
  • syslinux @MEMTEST@ will conditionally be memtest.bin or memtest
  • @MEMTEST_BIN@ will conditionally be memtest.bin or memtest, but is completely legacy at this point (all internal code paths now check for @MEMTEST_DIR@/memtest or @MEMTEST_DIR@/memtest.bin)

Getting complicated, but this logic can be simplified again once we no longer need to support current Debian stable.

Merge request reports

Loading