From: Jackie Huang Date: Fri, 29 May 2020 09:42:13 +0000 (+0800) Subject: pxe-network-installer: fix kernel options in pxelinux.cfg.files X-Git-Tag: bronze~27 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=09a8904eac19fe2f2d95a2de311e1db2a9256860;p=pti%2Frtp.git pxe-network-installer: fix kernel options in pxelinux.cfg.files The anaconda in yocto handles the kernel options differently, so do the following changes to ensure the installer starts correctly: - inst.ks -> ks - append LABEL=initrd-install Issue-ID: INF-139 Signed-off-by: Jackie Huang Change-Id: I2a127405b144437fd9d5ff612b09b700b2028035 --- diff --git a/meta-stx/recipes-core/stx-metal/pxe-network-installer.inc b/meta-stx/recipes-core/stx-metal/pxe-network-installer.inc index d7227f3..8658e2c 100644 --- a/meta-stx/recipes-core/stx-metal/pxe-network-installer.inc +++ b/meta-stx/recipes-core/stx-metal/pxe-network-installer.inc @@ -66,7 +66,10 @@ do_install_prepend () { install -m 644 efi-centos-pxe-worker_lowlatency-install ${D}/pxeboot/pxelinux.cfg.files/efi-pxe-worker_lowlatency-install-${STX_REL} install -m 644 efi-centos-pxe-smallsystem_lowlatency-install ${D}/pxeboot/pxelinux.cfg.files/efi-pxe-smallsystem_lowlatency-install-${STX_REL} - sed -i "s/xxxSW_VERSIONxxx/${STX_REL}/g" ${D}/pxeboot/pxelinux.cfg.files/pxe-* ${D}/pxeboot/pxelinux.cfg.files/efi-pxe-* + sed -i -e "s/xxxSW_VERSIONxxx/${STX_REL}/g" \ + -e "s/inst.ks/ks/g" \ + -e "s/\(xxxAPPEND_OPTIONSxxx\)/LABEL=initrd-install \1/" \ + ${D}/pxeboot/pxelinux.cfg.files/pxe-* ${D}/pxeboot/pxelinux.cfg.files/efi-pxe-* # Copy Titanium grub.cfg. It will be used to create ISO on the Controller. install -m 0644 ${S}/bsp-files/grub.cfg ${D}/pxeboot/EFI/