4 # older versions of grub2 do not have this yet (LP: #459080)
5 if [ ! -e /usr
/lib
/grub
/grub-mkconfig_lib
]; then
6 echo "no grub-mkconfig_lib, exiting"
10 .
/usr
/lib
/grub
/grub-mkconfig_lib
12 # We can't cope with loop-mounted devices here.
13 case ${GRUB_DEVICE_BOOT} in
14 /dev
/loop
/*|
/dev
/loop
[0-9])
19 if test -e /boot
/memtest86
+; then
20 MEMTESTPATH
=$
( make_system_path_relative_to_its_root
"/boot/memtest86+" )
21 echo "Found memtest86+ image: $MEMTESTPATH" >&2
23 menuentry "Memory test (memtest86+)" {
25 prepare_boot_cache
="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s
/^
/\t/")"
26 printf '%s\n' "${prepare_boot_cache}"
30 menuentry "Memory test (memtest86+, serial console 115200)" {
32 printf '%s\n' "${prepare_boot_cache}"
34 linux16 $MEMTESTPATH console=ttyS0,115200n8