ERROR: ESP missing or multiple ESP found
phumberdroz opened this issue · 4 comments
Hey,
I am trying to run the installimage as part of https://github.com/syself/cluster-api-provider-hetzner
I have 3 dedicated servers on 2 servers the script just runs fine but on the 3rd server it fails with:
[14:23:21] # use config file /autosetup for autosetup
[14:23:21] # use post-install file /root/post-install.sh
[14:23:21] # OPT_CONFIGFILE: /autosetup
[14:23:21] # starting installimage
[14:23:21] -------------------------------------
[14:23:21] : Hardware data:
[14:23:21] : CPU1: AMD Ryzen 9 5950X 16-Core Processor (Cores 32)
[14:23:21] : Memory: 128746 MB
[14:23:21] : Disk /dev/nvme0n1: 3840 GB (=> 3576 GiB)
[14:23:21] : Disk /dev/nvme1n1: 3840 GB (=> 3576 GiB)
[14:23:21] : Total capacity 7153 GiB with 2 Disks
[14:23:21] -------------------------------------
[14:23:21] # make clean config
[14:23:21] # SYSTYPE: System Product Name
[14:23:21] # SYSMFC: ASUS
[14:23:22] # executing autosetup ...
[14:23:22] # SYSTYPE: System Product Name
[14:23:22] # SYSMFC: ASUS
[14:23:22] # checking if the script is disabled
[14:23:22] # validating config ...
[14:23:22] : /boot : 1024
[14:23:22] : / : all
[14:23:22] Image info:
[14:23:22] : DISTRIB ID: ubuntu
[14:23:22] : DISTRIB RELEASE/CODENAME: 2004
[14:23:22] : Size of the first hdd is: 3840755982336
[14:23:22] : ERROR: ESP missing or multiple ESP found
[14:23:22] cleaning up
[14:23:22] : umount: /installimage.kiLIM/hdd: not mounted
The autosetup file looks like this:
DRIVE1 /dev/nvme1n1
DRIVE2 /dev/nvme0n1
HOSTNAME bm-main-cluster-md-1-nsqbl
SWRAID 0
PART /boot ext4 1024M
PART / ext4 all
IMAGE /root/.oldroot/nfs/install/../images/Ubuntu-2004-focal-64-minimal-hwe.tar.gz
The system is in UEFI mode, but the setup file does not contain an ESP. This is not the default mode for this system, please open a support request to have the system set to legacy mode.
Thank you so much for the quick reply!
add this to the config PART /boot/efi esp 256M
BTW, up to now UEFI is still in beta. See: https://docs.hetzner.com/robot/dedicated-server/operating-systems/uefi/
Is there a way to switch from UEFI to legacy without contacting the support?
Is there a way to get the current value (UEFI or legacy) via API?