Bug 42025 - EFI variables are not supported on this system
Summary: EFI variables are not supported on this system
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: grub-efi (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Николай Костригин
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-22 17:46 MSK by Владимир Осташов
Modified: 2022-02-28 20:02 MSK (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Владимир Осташов 2022-02-22 17:46:31 MSK
При установке alt-education-10, на ноутбук аквариус,
----
Type: Desktop System: Aquarius product: NS685U R11 v: N/A 
           serial: 2211230258901-265 
           Mobo: AQUARIUS model: NS685Uv3 v: 1.00 serial: N/A UEFI: NumaTech v: 1.02.000 
           date: 11/26/2021 
----


 на пункте 5/12 на экране появляются ошибки
содержашие текст:

"EFI variables are not supported on this system" и т.д.

при нажатии кнопки далее установка проходит без проблем.

в pkg-install.log
есть такие ошибки:

---
1384: grub-pc-2.06-alt4                 ################################# [ 61%]
EFI boot, skipping grub-pc autoupdate (no problem)
1385: grub-efi-2.06-alt4                ################################# [ 61%]
modprobe: FATAL: Module efivars not found in directory /lib/modules/5.10.82-std-def-alt1
Updating grub in /boot/efi
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.
1386: libblockdev-fs-2.26-alt1          ################################# [ 61%]
** WARNING: grub-efi-autoupdate failed, NEXT BOOT WILL LIKELY FAIL NOW
** WARNING: please run grub-efi-autoupdate by hand, record the output offline,
** WARNING: make sure you have e.g. rEFInd bootable media handy.
1387: python3-module-ldap-3.3.1-alt1    ################################# [ 61%]
----

2284: acpi-1.7-alt1                     ################################# [100%]
/sbin/installkernel: DURING_INSTALL=1; supposed to run later
Usage: /sbin/installkernel [options] KERNEL_VERSION [IMAGE_FILE MAP_FILE INSTALL_PATH]

-r, -R, --remove	remove bootloader entry and prepare to remove kernel;
-m, --memtest		it's all about memtest86, not Linux kernel;
--label <label>	use <label> if it is not already used;
-n, --nolaunch	don't launch lilo;
--nodefault	do not change default kernel (/boot/vmlinuz) link;
--noflavour	do not change flavour kernel (/boot/vmlinuz-flavour) link;
--keep-initrd	do not overwrite existing initrd;
-u, --uboot		assume u-boot bootloader, optionally create packed images for it;
-h, --help		this help.
Updating grub in /boot/efi
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.
/usr/lib/rpm/grub-efi.filetrigger failed
error: posttrans filetriggers scriptlet failed, exit status 1
W: pkgMakeStatusCache: The configured APT::Cache-Limit (33554432) is below the recommended default value (201326592). Remove it to use the default.
W: You may want to run apt-get update to correct these problems
E: Some errors occurred while running transaction
Reading Package Lists...
Building Dependency Tree...
firmware-linux was already set to manually installed.
W: pkgMakeStatusCache: The configured APT::Cache-Limit (33554432) is below the recommended default value (201326592). Remove it to use the default.
W: You may want to run apt-get update to correct these problems
----

Скриншот ошибки, и pkg-install.log в

https://disk.yandex.ru/d/pzVAKCwk2uXFcQ
Comment 1 Владимир Осташов 2022-02-22 18:06:57 MSK
Аналогичная ошибка на Байкал.

System:
  Host: alt-edu-10 Kernel: 5.10.93-std-def-alt1 aarch64 bits: 64 
  compiler: N/A 
  parameters: BOOT_IMAGE=/boot/vmlinuz 
  root=UUID=ea19d470-2161-4777-9e33-f7fdcd38646a ro 
  resume=/dev/disk/by-uuid/00d57110-e2e8-49fc-b690-e618feba943a panic=30 
  splash 
  Desktop: Xfce 4.16.0 tk: Gtk 3.24.30 info: xfce4-panel wm: xfwm4 
  dm: LightDM 1.30.0 Distro: ALT Education 10.0 

Machine:
  Type: Embedded-pc System: T-Platforms product: TF307-MB v: A serial: N/A 
  Mobo: T-Platforms model: BM1BM1-A serial: MBM10S120A000182 UEFI: Baikal 
  v: 5.2 date: 06/08/2021
Comment 2 Anton Farygin 2022-02-22 22:15:12 MSK
ошибка где-то в железе, надо бы её поправить.
Comment 3 Andrey Cherepanov 2022-02-23 11:10:40 MSK
(Ответ для Anton Farygin на комментарий #2)
> ошибка где-то в железе, надо бы её поправить.

Ошибка скриптов не должна возвращать ошибку транзакции установки: это приводит к выводу портянки при установки дистрибутивов.
Более того, показывается справка по installkernel. Требуется правильная обработка подобных ситуаций.
Comment 4 Anton Farygin 2022-02-23 13:20:15 MSK
Как раз должен вызывать ошибку, т.к. вы пытаетесь поставить grub-efi на системе, для этого не предназначенной.

Давайте проведём диагностику, для начала пришлите с этой машины sosreport и содержимое /sys/firmware/efi/
Comment 5 Andrey Cherepanov 2022-02-24 10:41:56 MSK
(Ответ для Anton Farygin на комментарий #4)
> Как раз должен вызывать ошибку, т.к. вы пытаетесь поставить grub-efi на
> системе, для этого не предназначенной.
> 
> Давайте проведём диагностику, для начала пришлите с этой машины sosreport и
> содержимое /sys/firmware/efi/

Однако после установки с этой ошибкой система загружается.
Comment 6 Anton Farygin 2022-02-24 10:47:22 MSK
Это на байкале или на x86 ?

Есть удалённый доступ на эту машину ?
Comment 7 Andrey Cherepanov 2022-02-24 10:48:47 MSK
(Ответ для Anton Farygin на комментарий #6)
> Это на байкале или на x86 ?
> 
> Есть удалённый доступ на эту машину ?

x86. Владимир, прошу сказать IP-адрес ноутбука.
Comment 8 Anton Farygin 2022-02-24 10:49:28 MSK
В личных сообщениях, пожалуйста
Comment 9 Anton Farygin 2022-02-24 13:49:16 MSK
Коля, нужно отслеживать переменную DURING_INSTALL=1 в post скриптах grub и в его же файлтриггерах и ничего не делать, если она выставленна.
Comment 10 Repository Robot 2022-02-28 20:02:50 MSK
grub-2.06-alt7 -> sisyphus:

 Thu Feb 24 2022 Nikolai Kostrigin <nickel@altlinux> 2.06-alt7
 - grub-efi: improve RPM filetrigger and post install script to skip all
   actions in case of being invoked at package installing stage by OS installer
   (closes: #42025)
 - 30_uefi-firmware.in: Fix for zero supported indications (closes: #41970)
 - pack 41_custom as there appear to be users of it (closes: #41832)