commit 3d7958dc786bf433705a663c49736c8df76af12b Author: ayakael Date: Thu Sep 4 12:42:24 2025 +0000 Add How to regenerate Proxmox / pxvirt EFI diff --git a/How-to-regenerate-Proxmox-%2F-pxvirt-EFI.md b/How-to-regenerate-Proxmox-%2F-pxvirt-EFI.md new file mode 100644 index 0000000..2b4b253 --- /dev/null +++ b/How-to-regenerate-Proxmox-%2F-pxvirt-EFI.md @@ -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 \ No newline at end of file