Closed LordSpectre closed 3 months ago
seems to fail during efibootmgr
++ efibootmgr
++ grep -q Relax-and-Recover
+++ grep -w /boot/efi /proc/mounts
+++ awk '{print $1}'
++ efi_disk_part=/dev/nvme0n1p2
+++ echo /dev/nvme0n1p2
+++ sed -e 's/[0-9]//g'
++ efi_disk=/dev/nvmenp
++ test /dev/nvmenp
+++ echo /dev/nvme0n1p2
+++ sed -e 's/[^0-9]//g'
++ efi_part=012
++ test 012
+++ efibootmgr
+++ grep BootOrder
+++ cut -d : -f2
++ efi_boot_order=' 0005,0000,0001,0002,0003,0004'
++ test 0005,0000,0001,0002,0003,0004
++ efibootmgr -c -d /dev/nvmenp -p 012 -L Relax-and-Recover -l '\EFI\BOOT\rear.efi'
Could not prepare Boot variable: No such file or directory
++ Error 'Failed to create '\''Relax-and-Recover'\'' UEFI boot entry'
during mkrescue rear attempts to create special boot entry for booting the recovery console. grub-mkstandalone which creates the rear.efi exits OK, i guess maybe the wrong nvme target is used in the call to efibootmgr:
efibootmgr -c -d /dev/nvmenp
that looks suspicious to me
Maybe related to: https://github.com/rear/rear/pull/3267
You could try without
https://github.com/rear/rear/commit/018913e04c34e314c0ad75db300eb26d8a798e0e
or use latest release version (2.6)
Great find, thank you, this 018913e solved the issue and now rear (always 2.7) is able to create uefi boot entry without error
@abbbi thank you for your help!
@LordSpectre I assume you meant that with the changes in https://github.com/rear/rear/commit/018913e04c34e314c0ad75db300eb26d8a798e0e now rear is able to create uefi boot entry without error.
I ask because @abbbi had written 'without' in his https://github.com/rear/rear/issues/3287#issuecomment-2241171166
You could try without
https://github.com/rear/rear/commit/018913e04c34e314c0ad75db300eb26d8a798e0e
ReaR version ("/usr/sbin/rear -V"): Relax-and-Recover 2.7 / Git
OS version ("cat /etc/os-release" or "lsb_release -a" or "cat /etc/rear/os.conf"): PROXMOX Latest Version Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm
ReaR configuration files ("cat /etc/rear/site.conf" and/or "cat /etc/rear/local.conf"):
Hardware vendor/product (PC or PowerNV BareMetal or ARM) or VM (KVM guest or PowerVM LPAR): This is a test using VMWare VM before install everything in my primary homelab
System architecture (x86 compatible or PPC64/PPC64LE or what exact ARM device): x86-64 (amd64)
Firmware (BIOS or UEFI or Open Firmware) and bootloader (GRUB or ELILO or Petitboot): UEFI
Storage (local disk or SSD) and/or SAN (FC or iSCSI or FCoE) and/or multipath (DM or NVMe): local disk (VM Disk)
Storage layout ("lsblk -ipo NAME,KNAME,PKNAME,TRAN,TYPE,FSTYPE,LABEL,SIZE,MOUNTPOINT"):
Description of the issue (ideally so that others can reproduce it): Got The following error: ERROR: Failed to create 'Relax-and-Recover' UEFI boot entry But I don't understand what's wrong, while the same exactly config works perfect in other machine without UEFI boot
Workaround, if any: N/A
Attachments, as applicable ("rear -D mkrescue/mkbackup/recover" debug log files): This is the full log: https://www.zerobin.net/?fddfc0720e4a4abf#zUm/BjdmEzNBITognXHVzZXKKv9llwJdfnfpCFxXdk4=