Customize centos 5 installation CD

Source: Internet
Author: User
Copyright Disclaimer: original work. If you need to reprint it, please contact the author. Otherwise, legal liability will be held. Currently, one or six CD files are installed on centos 5.2, but not all programs are installed during the installation process, in addition, it is too troublesome to prepare 1-6 CDs to install a Linux system. In fact, installing a practical Linux system does not need to be so bloated, we can customize a centos Linux system that suits you. my goal is to integrate the software packages in 1-6 CD into a CD. I only need a CD to automatically install a practical Linux. preparation: 1. install the required software package based on the actual situation after installing a minimal Linux system on the VM: # Yum install-y pump-devel gtk2-devel booty bogl-devel bogl-bterm elfutils-devel beecrypt-devel dietlibc Anaconda-runtime busybox-anaconda 2. download a centos 5.2 dvd iso. # Mount-o loop/storage/CentOS-5.2-i386-bin-DVD.iso/Media 3. create a directory environment: # mkdir-P/storage/kickstart_build/isolinux/centos # mkdir-P/storage/kickstart_build/isolinux/KS # mkdir-P/storage/kickstart_build/isolinux/image # mkdir-P /storage/kickstart_build/isolinux/repodata # mkdir/storage/kickstart_build/all_rpms 4. copy the files in the source CD: # cp-RP/Media/isolinux/*/storage/kickstart_build/isolinux include. discinfo # cp/Media /. discinfo/storage/kickstart_build/isolinux # cp-RP/Media/isolinux/repodata/comps. XML/storage/kickstart_build # cp-RP/Media/cenos/*/storage/kickstart_build/all_rpms 5. edit Ks. CFG: # vi/storage/kickstart_build/isolinux/KS. CFG # Kickstart file automatically generated by Anaconda.


Install

CDROM

Lang en_US.UTF-8

Keyboard us

Network -- device eth0 -- bootproto DHCP

Network -- device eth1 -- onboot no -- bootproto DHCP

Rootpw -- iscrypted $1 $ aeqtgisa $ pjkkci5geo3mlmlz/fz.00

Firewall -- enabled -- Port = 22: TCP

Authconfig -- enableshadow -- enablemd5

SELinux -- disabled

Timezone -- UTC Asia/Shanghai

Bootloader -- location = MBR -- driveorder = SDA

# The following
Is the partition information you requested
# Note that any partitions you deleted are not expressed

# Here So unless you clear all partitions first,
This is
# Not guaranteed to work

# Clearpart -- Linux -- drives = SDA

# Part/boot -- fstype ext3 -- size = 100 -- ondisk = SDA

# Part PV.2 -- size = 0 -- grow -- ondisk = SDA

# Volgroup volgroup00 -- pesize = 32768 PV.2

# Logvol/-- fstype ext3 -- name = logvol00 -- vgname = volgroup00 -- size = 1024 -- grow

# Logvol swap -- fstype swap -- name = logvol01 -- vgname = volgroup00 -- size = 256 -- grow -- maxsize = 512

Clearpart -- all -- initlabel

Part/boot -- fstype ext3 -- size = 100

Part swap -- size = 1024

Part/-- fstype ext3 -- size = 100 -- grow



% Packages

@ Editors

@ Text-Internet

@ Dialup

@ Core

@ Base

Device-mapper-multipath
6. crop RPMs. For example, you can copy all the RPM packages you need to install to the/storage/kickstart_build/isolinux/centos directory. See the attachment list file, is the list of software packages to be installed. you can edit comps. the packages list in the XML file determines the software package to be installed. 7. use shell1 to collect dependent software packages. Usage: Download to the/storage/kickstart_build directory and change it to pare. pl, and grant the executable permission: # cd/storage/kickstart_build # chmod + x pare. PL # cd/storage/kickstart_build/isolinux/centos #/storage/kickstart_build/pare. PL/storage/kickstart_build/all_rpms i386 8. test the dependency of the software package # cd/storage/kickstart_build/isolinux/centos # mkdir/tmp/testdb
# Rpm -- initdb -- dbpath/tmp/testdb
# Rpm -- Test -- dbpath/tmp/testdb-uvh *. as prompted, RPM copies the dependent software packages from/storage/kickstart_build/all_rpms. 9. create repository # cd/storage/kickstart_build/isolinux
# Declare-x discinfo = 'head-1. discinfo'
# Createrepo-U "Media: // $ discinfo"-g/storage/kickstart_build/comps. XML. after the command is run, the repodata directory is automatically created. 10. create an ISO file # cd/storage/kickstart_build # mkisofs-O myos. iso-B isolinux. bin-C boot. cat-no-emul-boot \
-Boot-load-size 4-boot-Info-table-r-J-v-T isolinux/generate the MD5 string: #/usr/lib/Anaconda-runtime/implantisomd5 custom. ISO

This article is from the "Network memory stick" blog. For more information, contact the author!

Related Article

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.