KS CD maker for rhel6.5 and rhel7.2

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.