Building a custom CentOS 7 install CD

From Wiki
Revision as of 19:57, 21 November 2016 by Admin (Talk | contribs)

Jump to: navigation, search
sudo mount -o loop -t iso9660 CentOS-7-x86_64-NetInstall-1511.iso /var/mnt/iso/
rsync -avHl /var/mnt/iso/ centos7/

Create a kickstart file and edit as needed.

Create splash image.

Update isolinux.cfg file as follows.

label linux
  menu label ^Install CentOS 7 - Kickstart
  kernel vmlinuz
  append initrd=initrd.img inst.stage2=hd:LABEL=CentOS\x207\x20x86_64 inst.ks=cdrom:/ks.cfg inst.repo=

Once you have made all changes you can create the iso file.

mkisofs -o centos7.iso -V 'CentOS 7 x86_64' -b isolinux/isolinux.bin -c isolinux/ -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T centos7
mkisofs -o /pub/vmware/centos7-ovirt.iso -V 'CentOS 7 x86_64' -b isolinux/isolinux.bin -c isolinux/ -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T centos7-ovirt