Just wanted to report back, that with patches everything works again like it
should. Here is what a final /etc/grub.d/20_memtest86+ should look like:
#!/bin/sh
set -e
. /usr/lib/grub/grub-mkconfig_lib
if test -e /boot/memtest86+.bin ; then
MEMTESTPATH=$( make_system_path_relative_to_its_root
"/boot/memtest86+.bin" )
echo "Found memtest86+ image: $MEMTESTPATH" >&2
cat << EOF
menuentry "Memory test (memtest86+)" {
EOF
prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
cat << EOF
linux16 $MEMTESTPATH
}
menuentry "Memory test (memtest86+, serial console 115200)" {
EOF
prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/"
cat << EOF
linux16 $MEMTESTPATH console=ttyS0,115200n8
}
EOF
fi
And here is what the resulting /etc/grub.d/20_memtest86+ section in
/boot/grub/grub.cfg should look like after doing update-grub2:
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
set root=(hd0,1)
search --no-floppy --fs-uuid --set 34a33b7c-c8c1-4a75-86ba-62e496f138e2
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
set root=(hd0,1)
search --no-floppy --fs-uuid --set 34a33b7c-c8c1-4a75-86ba-62e496f138e2
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
I would like to Thank, Vasilis Vasaitis and Avi Rozen.