centos cannot boot UEFI

Bug #1740925 reported by Jeff Hillman
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Andres Rodriguez
2.3
Fix Released
High
Andres Rodriguez

Bug Description

After the first reboot of a deployment centos will receive an error when PXE is being told to local boot.

---

Booting local disk...
error: no such device: /efi/ubuntu/shimx64.efi
error: File not found.

Press any key to continue...

---

The correct file is /efi/redhat/grub.efi

In the package python3-maas-provisioningserver exists /usr/lib/python3/dist-packages/provisioningserver/templates/uefi/config.local.amd64.template

Adding the lines ...

    {{elif kernel_params.osystem == "centos"}}
    search --set=root --file /efi/redhat/grub.efi
    chainloader /efi/redhat/grub.efi

to lines 9 - 11 resolves this problem. However, the local grub installed on disk now drops to a prompt as if it isn't finding it's configuration files.

on the deployed system the /boot/grub/grub.conf file is properly configured and annotated that it was configured via MAAS.

manually setting up root and pointing to the vmlinuz and initrd files at the grub prompt will result in a successful boot.

CentOS 6 sync'd via MAAS
python3-maas-provisioningserver 2.3.0-6434-gd354690-0ubuntu1~16.04.1
Xenial

Tags: cpe-onsite

Related branches

Jeff Hillman (jhillman)
description: updated
tags: added: cpe-onsite
description: updated
description: updated
Changed in maas:
status: New → Incomplete
status: Incomplete → Triaged
importance: Undecided → Critical
milestone: none → 2.4.0alpha1
Changed in maas:
milestone: 2.4.0alpha1 → 2.4.0alpha2
Changed in maas:
milestone: 2.4.0alpha2 → 2.4.0beta1
Changed in maas:
milestone: 2.4.0beta1 → 2.4.0beta2
Changed in maas:
importance: Critical → High
Changed in maas:
milestone: 2.4.0beta2 → 2.4.0beta3
Changed in maas:
milestone: 2.4.0beta3 → 2.4.0beta4
Changed in maas:
milestone: 2.4.0beta4 → 2.4.0rc2
Changed in maas:
milestone: 2.4.0rc2 → 2.4.0rc1
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
assignee: nobody → Andres Rodriguez (andreserl)
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.