customizing Linux automation installation Images

Source: Internet
Author: User

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

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.