Create your own centos/Linux release customized simplified ISO compressed file [Basic Version] (transfer) 1. Install RHEL/centos 5.3 system, just select your desired package! I only selected the basic package and removed some packages from the basic package. After installation, there will be about 410 packages! Please do it based on your own situation!
2. There is an install. log file in the root directory, which records the RPM packages installed when you install the system. The file content should be like this:
Installing libgcc-4.1.2-44.el5.x86_64
Warning: libgcc-4.1.2-44.el5: Header V3 DSA Signature: nokey, key ID 37017186
Installing setup-2.5.58-4.el5.noarch
Installing filesystem-2.4.0-2.x86_64
Installing basesystem-8.0-5.1.1.noarch
Installing cracklib-dicts-2.8.9-3.3.x86_64
Installing nash-5.1.19.6-44.x86_64
...................
Find a way to get this file to win, and then replace the modified content in batches. The purpose is to copy the RPM package you just installed. The modified content should be like this:
CP-A/Media/Server/libgcc-4.1.2-44.el5.x86_64.rpm/home/rhel5u3/Server
CP-A/Media/Server/setup-2.5.58-4.el5.noarch.rpm/home/rhel5u3/Server
CP-A/Media/Server/filesystem-2.4.0-2.x86_64.rpm/home/rhel5u3/Server
CP-A/Media/Server/basesystem-8.0-5.1.1.noarch.rpm/home/rhel5u3/Server
CP-A/Media/Server/cracklib-dicts-2.8.9-3.3.x86_64.rpm/home/rhel5u3/Server
Note that you must first create the directory rhel5u3 and server and mount the installation disc to/media! If you have installed centos, you should change the server to centos, and then VI copy. sh will change the install. paste the log Content and save it. Execute chmod + x copy. sh grant the script execution permission, and then sh copy. sh execute it! Copy the required files to the rhel5u3 directory,
CP-A/Media/. discinfo/home/rhel5u3
CP-A/Media/. treeinfo/home/rhel5u3
CP-Ar/Media/isolinux/home/rhel5u3
CP-Ar/Media/images/home/rhel5u3
CP-Ar/Media/Server/repodata/home/rhel5u3/Server
If centos is installed, change CP-Ar/Media/Server/repodata/home/rhel5u3/server to CP-Ar/Media/repodata/home/rhel5u3
3. Prepare the automatic installation file, there is a anaconda-ks.cfg under the root directory to copy it over
CP ~ /Anaconda-ks.cfg/home/rhel5u3/isolinux
CD/home/rhel5u3/isolinux
Music anaconda-ks.cfg ks. cfg
Then modify isolinux. cfg in isolinux to change default Linux to default Linux Ks = CDROM:/isolinux/KS. cfg.
At this point, all the required files are ready, and then execute the following command
CD/home/rhel5u3/Server
Createrepo-G repodata/comps-rhel5-server-core.xml. Install anaconda and Anaconda-runtime with Yum before executing the createrepo command!
If you are installing centos, you should change the comps-rhel5-server-core.xml to comps. xml and finally execute it in the upper-level directory of rhel5u3:
Mkisofs-O rhel5u3. iso-B isolinux/isolinux. bin-C isolinux/boot. cat-no-emul-boot-load-size 4-boot-Info-table-r-J-v-T rhel5u3/
Generate the cd iso file!
For more parameters of the KS. cfg Automatic Installation File, see Anaconda.
The default content is as follows:
# Kickstart file automatically generated by Anaconda.
Install
CDROM // install from the CD
Key-Skip // skip Sn
Lang en_US.UTF-8 // Language
Keyboard us // keyboard
Network-device eth0-bootproto DHCP // Network Parameters
Rootpw-iscrypted $1 $ bljn2gye $ iseu9p3m1zmrvblx7bhrt. // Root Password
Firewall-enabled-Port = 22: TCP // you can change to disabled to disable FW.
Authconfig-enableshadow-enablemd5 // password encryption method
SELinux-enforcing // you can change it to disabled to disable SELinux.
Timezone Asia/hong_kong // time
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/home-fstype ext3-name = logvol02-vgname = volgroup00-size = 4992
# Logvol swap-fstype swap-name = logvol01-vgname = volgroup00-size = 512-Grow-maxsize = 1024
# Logvol/tmp-fstype ext3-name = logvol03-vgname = volgroup00-size = 512
# Logvol/var-fstype ext3-name = logvol05-vgname = volgroup00-size = 2848
# Logvol/usr-fstype ext3-name = logvol04-vgname = volgroup00-size = 8000
# Logvol/-fstype ext3-name = logvol00-vgname = volgroup00-size = 2976
% Packages // The RPM package you selected will be different from here
@ Editors
@ Core
@ Base
@ Java
Fipscheck
Device-mapper-multipath
-Emacs-leim
-Psgml
-Emacspeak
-RHN-Check
-Dhclient
-Nano
-Sendmail
-Pcmciautils
-Yum
-Yum-updatesd
Dhcpv6-client
-Firstboot-tui
-NetworkManager
-Yum-RHN-plugin
-IrDA-utils
-Ypbind
-RHN-Setup
-Yum-Security
-Bluez-utils
Rootpw-iscrypted $1 $ bljn2gye $ iseu9p3m1zmrvblx7bhrt. This must be removed so that you can set your own password during installation.
Try to remove network-device eth0-bootproto DHCP. You can still not set network parameters during installation, and then suspect that firewall-enabled-Port = 22: TCP and SELinux-enforcing are also removed or not:
Lang en_US.UTF-8 // Language
Keyboard us // keyboard
Network-device eth0-bootproto DHCP // Network Parameters
Rootpw-iscrypted $1 $ bljn2gye $ iseu9p3m1zmrvblx7bhrt. // Root Password
Firewall-enabled-Port = 22: TCP // you can change to disabled to disable FW.
Authconfig-enableshadow-enablemd5 // password encryption method
SELinux-enforcing // you can change it to disabled to disable SELinux.
Timezone Asia/hong_kong // time
You can skip this step without setting up the network. However, parameters such as the key selection disk and language have become the text mode. If you have time, please refer to Anaconda, I want to install Yum and disable some services after installing the system!