Created
April 5, 2019 00:09
-
-
Save foundObjects/a192f7165a6e34ca87cc2e10d12147bc to your computer and use it in GitHub Desktop.
Proxmox 5.2/5.3 UEFI grub install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BOOTDEV="/dev/sda" | |
# PVE 5.3 | |
EFIDEV="/dev/sda2" | |
# PVE 5.2 | |
# EFIDEV="/dev/sda9" | |
# == ( 5.2/5.3 FIX UEFI BOOT ) ========================== | |
## in UEFI mode: install zfs root, shut down completely, cold rescue boot from Proxmox ___5.2___ install media | |
## 5.3 install media will not rescue boot successfully | |
## cold boot was important on my machine, warm boot would just hang trying to boot the rescue media | |
# Notes: | |
# find 512MB UEFI partition, for me it was /dev/sda2 (sda1 was BIOS boot stuff) on 5.3 | |
# and /dev/sda9 (solaris reserved) on 5.2 | |
# lsblk -f | |
# fdisk -l /dev/sda (YOUR BOOT DEVICE HERE) | |
# | |
# use your EFI partition below | |
mkdir -p /boot/efi | |
mkfs.vfat -F32 $EFIDEV | |
echo PARTUUID=$(blkid -s PARTUUID -o value $EFIDEV) /boot/efi vfat noatime,nofail,x-systemd.device-timeout=1 0 1 >> /etc/fstab | |
mount /boot/efi | |
grub-probe -d $EFIDEV | |
update-grub | |
grub-install -d /usr/lib/grub/x86_64-efi $BOOTDEV | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for the reply, not sure if you had a case to replace a disk on proxmox 6.x with uefi? Because i tried the follow steps
but install the boot on that drive i got this error