poky_stx_aio_ks.cfg: add installer images for pxe 05/3905/1
authorJackie Huang <jackie.huang@windriver.com>
Fri, 29 May 2020 02:55:23 +0000 (10:55 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Fri, 29 May 2020 08:27:10 +0000 (16:27 +0800)
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 <jackie.huang@windriver.com>
Change-Id: I282866c2720f3cae9df16f0c49569bc6409c2fbf

meta-stx/conf/distro/files/ks/poky_stx_aio_ks.cfg

index 92460fb..4f7cb4d 100644 (file)
@@ -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