#!/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 echo "memtest: scanning chroot/boot/ for memtest files:" ls chroot/boot/memtest* 2>/dev/null || echo "memtest: WARNING: no memtest files found in chroot/boot/" 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