System custom-made ISO file

Source: Internet
Author: User

First, the whole idea of system customization

(1) update the various software packages of the existing system.

(2) identify the packages required for the existing system services and their dependencies, and the necessary files for system customization are saved in the custom system-specific directory.

(3) Use the MKIOSFS command to operate the source directory and create an ISO image file.

Second, the specific steps of the system customization

(1) First of all the software installed by the system to upgrade.

(2) Create a directory arbitrarily (this chapter takes /build/work/cd_boot as an example) to hold some of the documents necessary for the development of the ISO .

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/29/wKioL1bhLJPRgkTyAAAdyzrrUcM845.png "title=" Picture 1.png "alt=" Wkiol1bhljprgktyaaadyzrrucm845.png "/>


(3) install buildinstallunder/usr/lib/anaconda-runtime/, The main function of the Buildinstall tool is to Import and export the required files into the custom directory (/BUILD/WORK/CD _boot)

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/29/wKioL1bhLQnih87jAAAoz9ziEqc917.png "title=" Picture 2.png "alt=" Wkiol1bhlqnih87jaaaoz9zieqc917.png "/>

(4) importing system information into /build/work/cd_boot

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7D/29/wKioL1bhLUmDNVBUAAAtU7CxE7g986.png "title=" Picture 3.png "alt=" Wkiol1bhlumdnvbuaaatu7cxe7g986.png "/>

The contents of the generated cd_boot directory are displayed as:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/2B/wKiom1bhLQ2QweAdAAARGXTMHbg512.png "title=" Picture 6.png "alt=" Wkiom1bhlq2qweadaaargxtmhbg512.png "/>

(5) The system /root/install.log file Gets the list of RPM packages installed by the system pag_list

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/2A/wKioL1bhLb2xBtkHAAAZljJDGw8471.png "title=" Picture 5.png "alt=" Wkiol1bhlb2xbtkhaaazljjdgw8471.png "/>

Pag_list file format display (listed as RPM packages installed in the system)

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/2A/wKioL1bhLpjSbI4eAAAT1SJZh7I827.png "title=" Picture 1.png "alt=" Wkiol1bhlpjsbi4eaaat1sjzh7i827.png "/>

( 5 ) to see if a system-specific directory exists in the system (the system is /build/work/cd_root ) and the directory under which the system is used to store all RPM Package of Catalog ( /build/work/cd_root/package if none are established.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/2B/wKiom1bhLlzgNLbkAAA4IMC8IN8193.png "title=" Picture 2.png "alt=" Wkiom1bhllzgnlbkaaa4imc8in8193.png "/>

(6) Create a Staging Directory (/TMP/CDREPO) under/tmp. XXXXXX) function is to temporarily save the rpm package downloaded from the optical drive, when all the rpm package and its dependent package is completed, the system will automatically copy the package under the random directory to the specified the destdir .

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/2A/wKioL1bhLyTQBBlcAAAZF34hy0Y537.png "title=" Picture 7.png "alt=" Wkiol1bhlytqbblcaaazf34hy0y537.png "/>

The installation script execution is complete,/tmp/cdrepo. XXXX Directory is the RPM Package generated by the cache,log and so on

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/2A/wKioL1bhL02CrAiLAAAbQwXFxGs498.png "title=" Picture 8.png "alt=" Wkiol1bhl02crailaaabqwxfxgs498.png "/>

(7) Write a small script to download all the packages installed by the system and output the RPM package and the dependent package to the specified directory

(/build/work/cd_root/package)650) this.width=650; "Src=" http://s3.51cto.com/wyfs02/M02/7D/2B/ Wkiom1bhl4bctntjaaa7vhvzpko791.png "title=" image 9.png "alt=" Wkiom1bhl4bctntjaaa7vhvzpko791.png "/>

After the installation script finishes, all RPM packages that are used by the system in the/build/work/cd_root/package directory

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7D/2A/wKioL1bhMEXh3-tyAAAqjOdz8EM186.png "title=" Picture 10.png "alt=" Wkiol1bhmexh3-tyaaaqjodz8em186.png "/>

(8) because the directory under/ TMP will also have all the RPM packages used by the system, it will make the system storage occupied, so the temporary resulting staging directory deleted.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M01/7D/2A/wKioL1bhMHLhVxgIAAAnsRfNSHY296.png "title=" Picture 11.png "alt=" Wkiol1bhmhlhvxgiaaansrfnshy296.png "/>

Build Comps.xml files because there are many packages installed in the system, you cannot Comps.xml the handwriting of the file is generated, so the call script completes. An example script for generating a comps.xml file is as follows:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7D/2A/wKioL1bhMLnxGREsAAA6T8lXACc442.png "title=" Picture 12.png "alt=" Wkiol1bhmlnxgresaaa6t8lxacc442.png "/>

The contents of the generated Comps.xml file are as follows:

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7D/2B/wKiom1bhMFiRrIvtAABLGd7YHtU488.png "title=" Picture 13.png "alt=" Wkiom1bhmfirrivtaablgd7yhtu488.png "/>

(10) Check the system customization of the source directory for the existence of the repodata directory, the deletion, the use of compos.xml file re-

Build Repodata

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7D/2B/wKiom1bhMILzL4TnAABtWSYRH3M454.png "title=" Picture 14.png "alt=" Wkiom1bhmilzl4tnaabtwsyrh3m454.png "/>


Due to insufficient storage space in the native root directory, the specified directory/build/work/cd_root the system customization is modified to/opt/data/build/work/cd_root

(11) Copy the required files that are stored in the system under cd_boot to the specified directory in the system customization.

(/opt/data/build/work/cd_root)

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/2C/wKiom1bhMViiFeovAABRzlhOgKA644.png "title=" Picture 15.png "alt=" Wkiom1bhmviifeovaabrzlhogka644.png "/>

(12) Import your own custom ks.cfg file into the custom specified directory under /opt/data/build/work/cd_root . in the ks.cfg file to define the system installation settings and user installation settings, you can not use the file, the file is used for the system to automatically install, You do not need to manually select a configuration.

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/2A/wKioL1bhMguyQ5kEAAAhwiaN0os384.png "title=" Picture 16.png "alt=" Wkiol1bhmguyq5keaaahwian0os384.png "/>

(13) Use the MKIOSFS command to generate an ISO file for the specified directory of the system.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/2A/wKioL1bhMjaD2VSaAAAeZy7Nv1c846.png "title=" Picture 17.png "alt=" Wkiol1bhmjad2vsaaaaezy7nv1c846.png "/>

a successful system customization will show the resulting ISO file:

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/2C/wKiom1bhMc6DUmgGAAATy_dnti8485.png "title=" Picture 18.png "alt=" Wkiom1bhmc6dumggaaaty_dnti8485.png "/>


This article from "Chan_yeol" blog, declined reprint!

System custom-made ISO file

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.