Bug 47244 - В GRUB меню отсутствует выбор memtest86+ для UEFI
Summary: В GRUB меню отсутствует выбор memtest86+ для UEFI
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: grub-common (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Egor Ignatov
QA Contact: qa-sisyphus
URL:
Keywords:
: 47253 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-08-15 09:50 MSK by obidinog@basealt.ru
Modified: 2023-09-04 20:47 MSK (History)
4 users (show)

See Also:


Attachments
Патч, добавляющий пункт для UEFI (2.05 KB, patch)
2023-08-15 18:07 MSK, Антон Мидюков
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description obidinog@basealt.ru 2023-08-15 09:50:23 MSK
Платформа:
kworkstation-10.1-x86-64 (обновленный до Sisyphus)

Пакет:
grub-common 2.06-alt12

Для UEFI в grub-меню отсутствует возможность запуска memtest86+. Если отредактировать файл /etc/grub.d/39_memtest

Закомментировать 
if [ -d /sys/firmware/efi ]; then
 echo "Skipping memtest image in EFI mode" >&2
 exit 0
fi

В строке
find /boot -name "memtest-*.bin"

изменить на
find /boot -name "memtest-*.efi"

Изменить строку
echo "        linux16 $dirname/$basename"
на
echo "        linux $dirname/$basename"

После этого memtest86+ появлятся для выбора в grub меню
Comment 1 Антон Мидюков 2023-08-15 18:07:32 MSK
Created attachment 14123 [details]
Патч, добавляющий пункт для UEFI

Добавил во вложение патч. Пунктов будет генерироваться два, но каждый из них будет виден только в том режиме, для которого они предназначены. Для работы memtest86+ требуется отключить Secure Boot, что и указывается в скобках для пункта меню в UEFI.
Comment 2 Антон Мидюков 2023-08-15 18:08:52 MSK
*** Bug 47253 has been marked as a duplicate of this bug. ***
Comment 3 Repository Robot 2023-09-04 20:47:31 MSK
grub-2.06-alt15 -> sisyphus:

 Tue Aug 22 2023 Egor Ignatov <egori@altlinux> 2.06-alt15
 - 39_memtest: add uefi support (closes: #47244)
 Wed Aug 16 2023 Egor Ignatov <egori@altlinux> 2.06-alt14
 - add f2fs, exfat, ntfs, ntfscomp modules to efi image (closes: #47257)
 Wed Jul 19 2023 Egor Ignatov <egori@altlinux> 2.06-alt13
 - change repo structure
  + get rid of git subtree
  + keep patches in a separate git branch
  + move alt-specific files to the 'altlinux' directory
 - post efi: probe quietly both efivars and efivarfs (closes: #46660)