From: Jackie Huang Date: Fri, 29 May 2020 02:55:23 +0000 (+0800) Subject: poky_stx_aio_ks.cfg: add installer images for pxe X-Git-Tag: bronze~30 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=ee99a2e260cea53046a13fe941de8e785463ca6d;p=pti%2Frtp.git poky_stx_aio_ks.cfg: add installer images for pxe In stx 3.0, these images are downloaded from centos and packaged in pxe-network-installer, but the images from centos can not be used directly here, the corresponding images are built in a separate project for anaconda, and are not available yet when pxe-network-installer is built, so we have to move these installation to the post-run script in the anaconda's kickstart file. Issue-ID: INF-130 Signed-off-by: Jackie Huang Change-Id: I282866c2720f3cae9df16f0c49569bc6409c2fbf --- diff --git a/meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg b/meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg index 92460fb..4f7cb4d 100644 --- a/meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg +++ b/meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg @@ -652,6 +652,19 @@ sed -i "s|\(^.*/dev/root\)|#\1|" /etc/fstab %end +%post --nochroot +# installer images for pxe-network-installer +mkdir -p /mnt/sysimage/pxeboot/rel-19.12 +cp -P /boot/installer-initrd* /mnt/sysimage/pxeboot/rel-19.12/ +cp /boot/bzImage /mnt/sysimage/pxeboot/rel-19.12/installer-bzImage_1.0 +ln -s installer-bzImage_1.0 /mnt/sysimage/pxeboot/rel-19.12/installer-bzImage + +if [ -f /media/realroot/efi.img ]; then + cp /media/realroot/efi.img /mnt/sysimage/pxeboot/rel-19.12/efiboot.img +fi + +%end + # Template from: post_common.cfg %post --erroronfail