Bug 37664

Summary: grub-install generates an incomplete /boot/efi/EFI/altlinux/grub.cfg
Product: Sisyphus Reporter: Dmitry V. Levin <ldv>
Component: grub-commonAssignee: Николай Костригин <nickel>
Status: CLOSED FIXED QA Contact: qa-sisyphus
Severity: critical    
Priority: P3 CC: aen, nickel, placeholder, rider, stalker
Version: unstable   
Hardware: all   
OS: Linux   
Bug Depends on:    
Bug Blocks: 37660    

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):