Add How to regenerate Proxmox / pxvirt EFI

ayakael 2025-09-04 12:42:24 +00:00
commit 3d7958dc78

@ -0,0 +1,10 @@
Regenerating EFI involves using `proxmox-boot-tool` within chroot environment. Most times, just refreshing the EFI is necessary. But when the EFI boot is completely confused, it is worth reinitializing it. To do so, first setup a chroot environment.
1) Boot into the latest Proxmox / pxvirt installation ISO. Latest, as ZFS comptability isn't always guaranteed.
2) Once you see the license agreement form, go to terminal via CTRL+ALT+F2
3) Import rpool under `/mnt`: `zpool import -R /mnt rpool`
4) Mount root (`canmount` should be set as `noauto`): `zfs mount rpool/ROOT/[root name]`
5) Bind mount device paths: `mount -o bind {/dev,/proc,/run,/sys,/sys/firmware/efi/efivars} /mnt/{/dev,/proc,/run,/sys,/sys/firmware/efi/efivars}`
6) Chroot into /mnt: `chroot /bin/sh /mnt`
7) Run `proxmox-boot-tool` as necessary. If need refresh, use `refresh`. If need init, use `init /dev/efi-device`
8) Reboot