[Color = Green] [size = 4] I 've studied things. Recently, many people on the Internet are struggling to make their own releases, so I will share my notes with you! [/Size] [/color] [Color = Blue] Note: The Path/data/disk is the path of the CD. You can modify it according to your environment. [/Color] ========================================================== ==================== Basic Process: Customized RPM package Modify comps. xml Recompile comps. rpm Regenerate hdlist Create pkglist Use buildinstall to process the installer Use mkisofs to create an installation Image ------------------------------------------------ The Master System is centos4.3. To get the latest software, first upgrade your system-related software. Rpm -- import http://mirror.be10.com/centos/4.3/ OS /i386/RPM-GPG-KEY-centos4 Rpm -- import/usr/share/doc/centos-release-4/RPM-GPG-KEY>/dev/null Yum-y update The following is a required package for creating and installing a cd Yum install pump-devel gtk2-devel booty bogl-devel bogl-bterm elfutils-devel beecrypt-devel dietlibc Yum install Anaconda-runtime busybox-anaconda ========================================================== ============================================ Package arch version repository size ========================================================== ============================================ Installing: Anaconda i386 10.1.1.37-1. centos4.2 base 4.3 m Anaconda-runtime i386 10.1.1.37-1. centos4.2 base 526 K Busybox-anaconda i386 1.00.rc1-5 base 177 K Installing for dependencies: Anaconda-help noarch 10.1.0-1. centos4 base 800 K Bogl i386 0.1.18-4 Base 93 K Booty i386 0.44.3-1 base 85 K Pyparted i386 1.6.8-2 base 22 K Check RPM package dependency CD/data/Disk/eserver/RPMS Mkdir/tmp/testdb Rpm -- initdb -- dbpath/tmp/testdb Rpm -- Test -- dbpath/tmp/testdb-uvh *. rpm The procedure is as follows: 1. Set Python system environment variables Export pythonpath =/usr/lib/anaconda Export Path = "$ path:/usr/lib/Anaconda-RunTime" 2. Update the file tree of the CD Genhdlist -- productpath = eserver/data/Disk 3. Generate the pkgfile file required for the next step. Pkgorder -- product eserver/data/Disk/eserver>/data/pkgfile 4. compile and generate the CD boot file and image installation interface Image Buildinstall -- pkgorder/data/pkgfile \ -- Version "1.2 "\ -- Product "eserver "\ -- Release "Beta "\ -- Prodpath eserver/data/Disk 5. Create ISO Mkisofs-r-t-J-V "eserver 1.2"-B isolinux/isolinux. bin \ -C isolinux/boot. Cat-no-emul-boot-load-size 4 \ -Boot-Info-table-X "Lost + found "\ -O/data/eserver. ISO/data/Disk The file isolinux/boot. Cat will be generated later by the mkisofs Program ---------------------------------------------------- Generate MD5 verification value for the CD Implantisomd5/data/eserver. ISO Inserting md5sum into ISO image... MD5 = b49c693f83c23d7e746dfe0f81a56016 Setting supported flag to 0 To change the graphic interface to a personalized interface, you need to modify stage2.img (CD boot image. If the hard disk is installed, You need to modify other imgfiles ......) Note: Anaconda resource modification: Mkdir/data/anaconda Mount-o loop/data/Disk/eserver/base/stage2.img/data/anaconda CD/data/anaconda Tar-CVF/data/stage2.tar. Mkdir/data/stage2 CD/data/stage2 Tar-xvf/data/stage2.tar Chmod + w-R ../stage2 # ----------- Modify a resource -----------------# ..... .... # Repackaging an IMG Image CD/Data Mkcramfs stage2/stage2.img. New CP/data/stage2.img. New/data/Disk/eserver/base/stage2.img Disk startup screen modification: Yum-y install syslinux The graphic is in a somewhat odd format, called lss16. as the name indicates, it is limited to 16 colors. to edit the graphic, first convert it to a ppm: Lss16toppm <splash. lss> splash. ppm Next, edit the file using the gimp. save the resulting file as an indexed GIF with no more than 14 colors (plus black and white, for a total of 16 ). then, convert the file to a PNM/PPM: Giftopnm <splash.gif | ppmtolss16> splash. lss CP splash. lss/data/Disk/isolinux/splash. lss Yum install GCC xorg-x11-devel. Compiled by gif2lss-0.4.tar.gz Make sure that the following packages are in the RPM directory of the CD. These packages are required for graphic creation. Without them, buildinstall will report an error. Anaconda Anaconda-runtime Anaconda-help Anaconda-Product Busybox Busybox-anaconda Memtest86 + Fonts-Xorg-Base Xorg-x11 Joe Kernel * Note: Rpm-QPI # displays RPM package information Rpm-uvh # Install the RPM package Rpm-qpl # column files in the RPM package : Em18: The above steps are post-practice notes, so they are generally successful. There are still some details, such as the modification and syntax of comps. xml. If you find any problems, follow these steps. |