CustomLinuxAutomated installation image
Install the necessary software
Yum-y Install Createrepo mkisofs anaconda-runtime
Yum-y Install Rsync
making a mirrored base model
mkdir/yousm/centos6.2 # Create a mirrored catalog
Mount/dev/cdrom/mnt # Mount The existing installation system disk
/usr/bin/rsync-a--exclude=packages/--exclude=repodata//mnt//yousm/centos6.2 # Sync Image's base file (rsync can copy hidden files)
Mkdir/yousm/centos6.2/packages
Mkdir/yousm/centos6.2/repodata
get the installation package that the system needs
awk '/Installing/{print $} ' Install.log|sed ' s/^[0-9]*://g ' >/root/packages.list # Write the system's installation package packages.list
For filerpm in ' cat packages.list '; Do cp–r/mnt/packages/$fileRpm */yousm/centos6.2/packages; Replication System installation package
ProductionRpmPackage Dependency Relationship
Cp/mnt/repodata/*-minimal-i386.xml/yousm/centos6.2/repodata/minimal-i386.xml
cd/yousm/centos6.2
Createrepo-g Repodata/minimal-i386.xml./
Declare-x discinfo= ' head-1. Discinfo '
Createrepo-u "media://$discinfo"-grepodata/ Ebdb6ed3f5842c0d6445a25f41e51d724f5768798d417e6353ff6a4a6ae52024-minimal-i386.xml.
Modify ReplaceIsolinuxfile and add auto answer fileKs.cfg
650) this.width=650; "Width=" 553 "height=" 403 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>
CP isolinux.cfg/yousm/centos6.2/isolinux/
Mkdir/yousm/cenytos6.2/ks
CP ks.cfg/yousm/centos6.2/ks/
ks.cfg documents See annex
PackageIsoMirroring andMd5Checksum
mkisofs-o centos-6.2_x86.iso-bisolinux/isolinux.bin-c isolinux/boot.cat-no-emul-boot-boot-load-size 4- Boot-info-table-r-j-v-t/yousm/centos6.2/
/usr/bin/implantisomd5./centos-6.2_x86.iso
This article is from the "Prince of Tourism" blog, please be sure to keep this source http://youprince.blog.51cto.com/9272426/1874646
customizing Linux automation installation Images