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