From 5857805518424144a73f63ef0239b273e4d9dd8d Mon Sep 17 00:00:00 2001 From: Michael Chus Date: Sun, 29 Mar 2026 09:02:40 +0300 Subject: [PATCH] fix(iso): copy memtest86+ to ISO root via binary hook memtest files live in chroot /boot (inside squashfs) but GRUB needs them on the ISO filesystem. Binary hook copies them out at build time. Co-Authored-By: Claude Sonnet 4.6 --- .../config/hooks/normal/9100-memtest.hook.binary | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 iso/builder/config/hooks/normal/9100-memtest.hook.binary diff --git a/iso/builder/config/hooks/normal/9100-memtest.hook.binary b/iso/builder/config/hooks/normal/9100-memtest.hook.binary new file mode 100755 index 0000000..4805d56 --- /dev/null +++ b/iso/builder/config/hooks/normal/9100-memtest.hook.binary @@ -0,0 +1,13 @@ +#!/bin/sh +# Copy memtest86+ binaries from chroot /boot into the ISO boot directory +# so GRUB can chainload them directly (they must be on the ISO filesystem, +# not inside the squashfs). +set -e + +for f in memtest86+x64.bin memtest86+x64.efi memtest86+ia32.bin memtest86+ia32.efi; do + src="chroot/boot/${f}" + if [ -f "${src}" ]; then + cp "${src}" "binary/boot/${f}" + echo "memtest: copied ${f} to binary/boot/" + fi +done