[CentOS] Custom kickstart post section on usb thumbdrive

Mon Aug 14 16:56:24 UTC 2017
Jerry Geis <jerry.geis at gmail.com>

Hi All,

I am attempting to create a custom USB drive for kickstart install.

I found this:
            1. get the ISO file of CentOS 7

                2. mount -o loop CentOS-7.0*.iso /mnt/

                3. mkdir -p

                4. rsync -avz /mnt/ /CentOS-7-ISO-respin/RHEL-7-unpacked

                5. put your kickstart file into

                6. add a new line to
/CentOS-7-ISO-respin/RHEL-7-unpacked/isolinux/isolinux.cfg (this way you
can use the ISO also from a DVD)
                label linux_ks
                  menu label ^Install CentOS 7 with Kickstart
                  kernel vmlinuz
                  append initrd=initrd.img inst.stage2=hd:sdb2:/

                7. create the ISO with:
                /usr/bin/genisoimage -untranslated-filenames -volid
'CentOS-7.0-KS-x86_64' -J -joliet-long -rational-rock -translation-table
-input-charset utf-8 -x ./lost+found -b isolinux/isolinux.bin -c isolinux/
boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table

                8. dd
of=/dev/XXX (where XXX is the Device Name of your USB drive without the
partition number e.g. /dev/sdb) (Careful, that command destroys all data on
the Stick)

But I would also like to create a custom directory on the ISO and put some
files in there for
a custom POST section.

I was not able to find an example with a custom POST section on the ISO.
Anyone have any examples?