Bug 37664 - grub-install generates an incomplete /boot/efi/EFI/altlinux/grub.cfg
Summary: grub-install generates an incomplete /boot/efi/EFI/altlinux/grub.cfg
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: grub-common (show other bugs)
Version: unstable
Hardware: all Linux
: P3 critical
Assignee: Николай Костригин
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 37660
  Show dependency tree
 
Reported: 2019-12-23 03:57 MSK by Dmitry V. Levin
Modified: 2020-06-15 13:59 MSK (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry V. Levin 2019-12-23 03:57:54 MSK
When installing into a LUKS partition on a UEFI hardware,
grub-install generates an incomplete /boot/efi/EFI/altlinux/grub.cfg file:

search.fs_uuid bd7feb40-5921-45d6-96d9-0f646f12956b root cryptouuid/f7fa2cedfd174a1cbe0b5ad7ed0c0776
set prefix=($root)'/boot/grub'
configfile $prefix/grub.cfg

As you can see, since the mandatory command
cryptomount -u f7fa2cedfd174a1cbe0b5ad7ed0c0776
that must precede search.fs_uuid is missing,
search.fs_uuid cannot find the root and the boot stops.

Note that grub-mkconfig does not have this issue, it adds cryptomount commands where appropriate.
Comment 1 Николай Костригин 2020-01-23 12:24:44 MSK
Fix is being tested in task #244809
Comment 2 Repository Robot 2020-01-30 11:48:21 MSK
grub-2.02-alt22 -> sisyphus:

 Thu Jan 23 2020 Nikolai Kostrigin <nickel@altlinux> 2.02-alt22
 - fix debian-install_signed patch (closes: #37664)
 - spec: remove useless pesigning from install section
   + fix license
   + move rpm-macros-uefi to BR(pre):