Il problema
grub-rpi3.efi è basato sulla fase di creazione dell'immagine RPI3 e manca un modulo cruciale per la richiesta della password:
# efibootmgr -v -v Could not read variable 'BootNext': No such file or directory error trace: vars.c:332 vars_get_variable(): open(/sys/firmware/efi/vars/BootNext-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var, O_RDONLY) failed: No such file or directory lib.c:139 efi_get_variable(): ops->get_variable failed: No such file or directory Could not read variable 'BootCurrent': No such file or directory error trace: vars.c:332 vars_get_variable(): open(/sys/firmware/efi/vars/BootCurrent-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var, O_RDONLY) failed: No such file or directory lib.c:139 efi_get_variable(): ops->get_variable failed: No such file or directory Could not read variable 'Timeout': No such file or directory error trace: vars.c:332 vars_get_variable(): open(/sys/firmware/efi/vars/Timeout-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var, O_RDONLY) failed: No such file or directory lib.c:139 efi_get_variable(): ops->get_variable failed: No such file or directory Could not read variable 'BootOrder': No such file or directory error trace: vars.c:332 vars_get_variable(): open(/sys/firmware/efi/vars/BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c/raw_var, O_RDONLY) failed: No such file or directory lib.c:139 efi_get_variable(): ops->get_variable failed: No such file or directory efibootmgr.c:372 read_order(): efi_get_variable failed: No such file or directory No BootOrder is set; firmware will attempt recovery Could not read variable 'MirrorCurrent': No such file or directory error trace: vars.c:332 vars_get_variable(): open(/sys/firmware/efi/vars/MirrorCurrent-7b9be2e0-e28a-4197-ad3e-32f062f9462c/raw_var, O_RDONLY) failed: No such file or directory lib.c:139 efi_get_variable(): ops->get_variable failed: No such file or directory Could not read variable 'MirrorRequest': No such file or directory error trace: vars.c:332 vars_get_variable(): open(/sys/firmware/efi/vars/MirrorRequest-7b9be2e0-e28a-4197-ad3e-32f062f9462c/raw_var, O_RDONLY) failed: No such file or directory lib.c:139 efi_get_variable(): ops->get_variable failed: No such file or directory
La soluzione
Segui i passaggi descritti di seguito per risolvere il problema:
1. Verifica che il file sia a posto:
# file grub-rpi3.efi
2. Installa il pacchetto grub2-efi-aa64-modules.
3. Imposta il dispositivo di avvio predefinito:
# echo "set root=(hd0,msdos2)" > grub2-early.cfg
4. Esamina grub-early.cfg per verificare che esista esattamente una stringa "set root".
5. Costruisci l'immagine:
# grub2-mkimage -c grub-early.cfg -O arm64-efi -o grub-rpi3.efi -p "(hd0,msdos1)/efi/redhat" all_video boot btrfs cat chain echo efifwsetup efinet ext2 fat font gfxmenu gfxterm gzio halt hfsplus iso9660 jpeg loadenv loopback lvm mdraid09 mdraid1x minicmd normal part_apple part_msdos part_gpt password_pbkdf2 png reboot regexp search search_fs_uuid search_fs_file search_label serial sleep syslinuxcfg test tftp video xfs http linux configfile
6. Verifica il nuovo file nella directory locale:
# file grub-rpi3.efi
7. Aggiungi una copia del file alla directory /boot/efi/EFI/redhat/.
# cp grub-rpi3.efi /boot/efi/EFI/redhat/
Questo dovrebbe anche produrre un avviso sulla sostituzione di un file esistente.
8. Scaricare i buffer di I/O sul supporto:
# sync; sync; sync
9. Riavvia con grazia.