############################## RHEL6.5 KS cd making
--1. Copying discs to Local
Mkdir-p/opt/rhel6
Mount/dev/cdrom/media
cp-arf/media/. /OPT/RHEL6//parameter-a means that permissions are not changed
--2. Making ks.cfg Files
Yum-y Install System-config-kickstart
System-config-kickstart
Note: The Install method option requires that you select CDROM instead of FTP or other,/boot partitions at least 200M.
--3. Copy the attached RHEL6.KS file to the system image directory and modify the Isolinux.cfg configuration file.
cp/root/ks.cfg/opt/rhel6/isolinux/
Vim/opt/rhel6/isolinux/isolinux.cfg
Modify in line 22nd
Append KS=CDROM:/ISOLINUX/RHEL6.KS initrd=initrd.img
--4. Write iso.sh scripts to produce ISO files.
Yum install-y genisoimage Mkisofs
vim/opt/iso.sh
#!/bin/bash
Mkiso= ' which genisoimage 2>/dev/null ' | | Mkiso= ' which mkisofs 2>/dev/null ' | | {
echo "Sorry, you don ' t have genisoimage or mkisofs installed."
Exit 1
}
$MKISO-v-r-j-joliet-long-ucs-level 3-input-charset utf8-publisher "UP14"-P "[email protected]"-V "rhel6.5_x86_64" -C boot.cat-hide boot.cat-b isolinux/isolinux.bin-no-emul-boot-boot-load-size 4-boot-info-table-o/opt/rhel6.5_v1.i So/opt/rhel6
############################## RHEL7.2 KS CD-ROM production, required under RHEL7 system, otherwise UEFI will not boot
# # # Mount CD
Mount-o Loop Centos-7-x86_64-dvd-1511.iso/media
# # # Copy disc to Local
Cp-rt/media/yum/mkiso/centos72
# # # Make image
Genisoimage-v-cache-inodes-joliet-long-r-j-t-v centos7-o/root/centos7.iso-c isolinux/boot.cat-b Isolinux/isolin Ux.bin-no-emul-boot-boot-load-size 4-boot-info-table-eltorito-alt-boot-b images/efiboot.img-no-emul-boot/yum/ mkiso/
Save the attachment's isolinux.cfg ks.cfg ks100.cfg in the catalog/yum/mkiso/centos72/isolinux
Save the grub.cfg of the attachment in the directory/yum/mkiso/centos72/efi/boot
# # # Download the picture, then modify it to 7z format.
KS CD maker for rhel6.5 and rhel7.2