From 353d3577c0258fc7952eb048b3b9d22a62f6499e Mon Sep 17 00:00:00 2001 From: Eric MacDonald Date: Thu, 26 May 2022 13:49:06 +0000 Subject: [PATCH] Debian: Add controller-0 install grub menus to pxe-network-installer This update adds UEFI and BIOS firmware controller-0 install grub menus to the pxe-network-installer module. These files require the following variable replacements that need to be set for the specific server and install environment. xxxLAB_PXExxx : replace with pxeboot path to server's kernel/initrd xxxLAB_FEEDxxx : replace with pxeboot path to server's install feed xxxBASE_URLxxx : replace with url path to server's install feed Default install device is /dev/sda but can be modified to meet the needs of the disk profile for the server being installed. These files are not packaged. They are only added here for version control purposes. Test Plan: PEND: Verify controller-0 install for all menu options (UEFI) PEND: Verify controller-0 install for all menu options (BIOS) Story: 2009301 Task: 45480 Signed-off-by: Eric MacDonald Change-Id: I412b5814c8694cc1d783c58fbb496f37ee6af803 --- .../efi-pxeboot.cfg.debian | 31 ++++++++++++++ .../pxe-network-installer/pxeboot.cfg.debian | 40 +++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 installer/pxe-network-installer/pxe-network-installer/efi-pxeboot.cfg.debian create mode 100644 installer/pxe-network-installer/pxe-network-installer/pxeboot.cfg.debian diff --git a/installer/pxe-network-installer/pxe-network-installer/efi-pxeboot.cfg.debian b/installer/pxe-network-installer/pxe-network-installer/efi-pxeboot.cfg.debian new file mode 100644 index 00000000..ce7aed69 --- /dev/null +++ b/installer/pxe-network-installer/pxe-network-installer/efi-pxeboot.cfg.debian @@ -0,0 +1,31 @@ +timeout=20 +default=2 + +GRUB_HIDDEN_TIMEOUT=0 +GRUB_TIMEOUT_STYLE='countdown' + +menuentry 'StarlingX Debian LAT / Kickstart Boot Menu' { + + echo " " + +} +menuentry '1) UEFI Boot from hard drive' { + search --set=root --label otaefi + configfile /EFI/BOOT/grub.cfg +} + +menuentry '2) UEFI Debian Controller Install' { + linuxefi xxxLAB_PXExxx/bzImage-std rdinit=/install defaultkernel=vmlinuz-*[!t]-amd64 instname=debian instbr=starlingx instab=0 traits=controller BOOTIF=$net_default_mac instdev=/dev/sda ks=xxxBASE_URLxxx/xxxLAB_FEEDxxx/kickstart.cfg insturl=xxxBASE_URLxxx/xxxLAB_FEEDxxx/ostree_repo console=ttyS0,115200 console=tty1 biosdevname=0 biosplusefi=1 + initrdefi xxxLAB_PXExxx/initrd +} + +menuentry '3) UEFI Debian All-in-one Install' { + linuxefi xxxLAB_PXExxx/bzImage-std rdinit=/install defaultkernel=vmlinuz-*[!t]-amd64 instname=debian instbr=starlingx instab=0 traits=controller,worker BOOTIF=$net_default_mac instdev=/dev/sda ks=xxxBASE_URLxxx/xxxLAB_FEEDxxx/kickstart.cfg insturl=xxxBASE_URLxxx/xxxLAB_FEEDxxx/ostree_repo console=ttyS0,115200 console=tty1 biosdevname=0 biosplusefi=1 + initrdefi xxxLAB_PXExxx/initrd +} + +menuentry '4) UEFI Debian All-in-one (lowlatency) Install' { + linuxefi xxxLAB_PXExxx/bzImage-rt rdinit=/install defaultkernel=vmlinuz-*-rt-amd64 instname=debian instbr=starlingx instab=0 traits=controller,worker,lowlatency efi=runtime BOOTIF=$net_default_mac instdev=/dev/sda ks=xxxBASE_URLxxx/xxxLAB_FEEDxxx/kickstart.cfg insturl=xxxBASE_URLxxx/xxxLAB_FEEDxxx/ostree_repo console=ttyS0,115200 console=tty1 biosdevname=0 biosplusefi=1 + initrdefi xxxLAB_PXExxx/initrd +} + diff --git a/installer/pxe-network-installer/pxe-network-installer/pxeboot.cfg.debian b/installer/pxe-network-installer/pxe-network-installer/pxeboot.cfg.debian new file mode 100644 index 00000000..76f0013f --- /dev/null +++ b/installer/pxe-network-installer/pxe-network-installer/pxeboot.cfg.debian @@ -0,0 +1,40 @@ +serial 0 115200 +timeout 50 +default 4 + +# Menu Configuration +MENU WIDTH 80 +MENU MARGIN 10 +MENU PASSWORDMARGIN 3 +MENU ROWS 12 +MENU TABMSGROW 18 +MENU CMDLINEROW 18 +MENU ENDROW 24 +MENU PASSWORDROW 11 +MENU TIMEOUTROW 20 +MENU TITLE StarlingX Debian LAT / Kickstart Boot Menu + +label 0 + menu label ^0) Boot from hard drive + menu default + COM32 chain.c32 + APPEND hd0 + +label 1 + menu label ^1) Debian Controller Install + kernel xxxLAB_PXExxx/bzImage-std + append initrd=xxxLAB_PXExxx/initrd rdinit=/install defaultkernel=vmlinuz-*[!t]-amd64 instname=debian instbr=starlingx instab=0 traits=controller instdev=/dev/sda ks=xxxBASE_URLxxx/xxxLAB_FEEDxxx/kickstart.cfg insturl=xxxBASE_URLxxx/xxxLAB_FEEDxxx/ostree_repo console=ttyS0,115200 console=tty1 biosdevname=0 biosplusefi=1 + ipappend 2 + +label 2 + menu label ^2) Debian All-in-one Install + kernel xxxLAB_PXExxx/bzImage-std + append initrd=xxxLAB_PXExxx/initrd rdinit=/install defaultkernel=vmlinuz-*[!t]-amd64 instname=debian instbr=starlingx instab=0 traits=controller,worker instdev=/dev/sda ks=xxxBASE_URLxxx/xxxLAB_FEEDxxx/kickstart.cfg insturl=xxxBASE_URLxxx/xxxLAB_FEEDxxx/ostree_repo console=ttyS0,115200 console=tty1 biosdevname=0 biosplusefi=1 + ipappend 2 + +label 3 + menu label ^2) Debian All-in-one (lowlatency) Install + kernel xxxLAB_PXExxx/bzImage-rt + append initrd=xxxLAB_PATHxxx/initrd rdinit=/install defaultkernel=vmlinuz-*-rt-amd64 instname=debian instbr=starlingx instab=0 traits=controller,worker,lowlatency instdev=/dev/sda ks=xxxBASE_URLxxx/xxxLAB_FEEDxxx/kickstart.cfg insturl=xxxBASE_URLxxx/xxxLAB_FEEDxxx/ostree_repo console=ttyS0,115200 console=tty1 biosdevname=0 biosplusefi=1 + ipappend 2 +