The UEFI grub config file used for PXE Boot Server containes a mixed
of menuentry and submenu. A submenu opens a new context and global
variables cannot be used within them https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1175127. This
was causing pxe_root to be empty for submenus selections. Moving
'1) UEFI Boot from hard drive' into a submenu fixes this problem and
also removes the need to save the root variable. This was previously
required when a user would select boot from hard drive and the hard
drive did not exist, root would no longer be set to the pxeboot
server and selecting the other menu entries would fail.
Remove the '1)' prefix in the 'Boot from hard drive' menu option in
both Legacy and UEFI boot as this is not used by other menues.
Reviewed: https:/ /review. openstack. org/606982 /git.openstack. org/cgit/ openstack/ stx-metal/ commit/ ?id=3f337d5edb1 fe2a6efa1d64d58 e221017e165f0b
Committed: https:/
Submitter: Zuul
Branch: master
commit 3f337d5edb1fe2a 6efa1d64d58e221 017e165f0b
Author: Kristine Bujold <email address hidden>
Date: Mon Oct 1 11:14:25 2018 -0400
Fix bug with PXE Boot Server
The UEFI grub config file used for PXE Boot Server containes a mixed /bugs.launchpad .net/ubuntu/ +source/ grub2/+ bug/1175127. This
of menuentry and submenu. A submenu opens a new context and global
variables cannot be used within them
https:/
was causing pxe_root to be empty for submenus selections. Moving
'1) UEFI Boot from hard drive' into a submenu fixes this problem and
also removes the need to save the root variable. This was previously
required when a user would select boot from hard drive and the hard
drive did not exist, root would no longer be set to the pxeboot
server and selecting the other menu entries would fail.
Remove the '1)' prefix in the 'Boot from hard drive' menu option in
both Legacy and UEFI boot as this is not used by other menues.
Closes-Bug: 1794863
Change-Id: I5bc62039bfb684 77e9cd0166ce178 77693037640
Signed-off-by: Kristine Bujold <email address hidden>