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 <eric.macdonald@windriver.com>
Change-Id: I412b5814c8694cc1d783c58fbb496f37ee6af803
This commit is contained in:
Eric MacDonald 2022-05-26 13:49:06 +00:00
parent 395f7ea5ec
commit 353d3577c0
2 changed files with 71 additions and 0 deletions

View File

@ -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
}

View File

@ -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