Build a custom Fedora install CD
From Wiki
Creating a custom boot CD for Fedora 26 kickstart.
Note: This configuration requires a DHCP address. To use a static IP the kickstart file must be modified with the proper network settings.
Mount the iso file.
sudo mount -o loop -t iso9660 /pub/fedora/releases/26/Server/x86_64/iso/Fedora-Server-dvd-x86_64-26-1.5.iso /var/mnt/iso/
Copy the iso for modifications:
mkdir fedora26 rsync -avHl /var/mnt/iso/ fedora26
Add a kickstart option to the isolinux/isolinux.cfg file The "install" line should look similar to below. The "LABEL=" entry will normally be a string like "Fedora-S-dvd-x86_64-${release}", you can use blkid to verify this.
blkid /pub/fedora/26/Server/x86_64/iso/Fedora-Server-dvd-x86_64-26-1.5.iso
label kickstart menu label ^Fedora 26 Kickstart Install kernel vmlinuz append initrd=initrd.img inst.stage2=hd:LABEL=Fedora-S-dvd-x86_64-25 inst.ks=http://spacewalk.example.com/ks/cfg/org/1/label/fedora26-minimal ip=dhcp
To embed the kickstart file in the iso file you can set to inst.ks=cdrom:/ks.cfg
Example kickstart files are available at the following URLs.
- Fedora Workstation - https://gist.github.com/449b3422953f7a0e4bad08b8867cf0ce
- Fedora Server - https://gist.github.com/fa70725cfd29f4bf0fda6385c715230b
After you are done with these steps create an iso file using mkisofs:
sudo mkisofs -o /var/mnt/lustre/iso/fedora26-server-x86_64.iso -V Fedora-S-dvd-x86_64-26 -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T fedora26/
Burn the disc:
wodim --devices wodim -v dev='/dev/sg2' fedora26_server_x86_64.iso
You should now be able to boot from the CD.