|
楼主 |
发表于 2006-4-6 23:54:07
|
显示全部楼层
找到答案了...直接用安装盘可以做个镜象...
2.2. Copying the Original Distribution
If you already have reliable CD-ROM installation discs of a distribution, reduce your initial bandwidth and time spent mirroring by copying the files from the discs to your server. Copy all files from Installation Disc 1 into the fedora/linux/core/4/arch/os folder. Then copy all files from the Fedora folder of each of the remaining Installation discs into the fedora/linux/core/4/arch/os/Fedora folder on the server.
Copy all the files from the SRPMS folder on each of the "Sources" discs to the fedora/linux/core/4/SRPMS folder on the server. Make a link in the os folder that occurs under each architecture. Follow this example:
cd /var/www/mirror/fedora/linux/core/4/i386/os/Fedora
ln ../../SRPMS SRPMS
The documentation for anaconda, the Fedora Core installation program, calls this directory structure an exploded tree. This is because the package data on each CD is extracted, or exploded, to a large directory tree with a predetermined structure. The anaconda installer expects this structure to some extent.
If you only include CD images, create a mirror suitable for installation services by mounting each CD image under the arch/os/ directory. Make a directory for each disc, naming them disc1, disc2, and so on. Mount each disc on the appropriate folder, and add entries to /etc/fstab to perform this mount automatically in case of a reboot. Each entry looks like this:
/path/i386/iso/FC4-i386-disc1.iso /path/i386/os/disc1 iso9660 defaults 0 0
The anaconda installer application automatically detects these folders and uses them properly. In addition, system configuration tools such as system-config-packages also continue to work properly when pointed at the parent of the ISO image mount points.
There are drawbacks to using CD ISO images in this fashion. For instance, no one directory contains the entire distribution of RPM packages. Soft links circumvent this problem, but your server security policies may not permit them. Fedora Core also comes in a ISO format DVD image, which alleviates this problem. Users who do not have DVD burning hardware, however, cannot use this image to make discs for their own use.
You only need a single line in /etc/fstab for mounting the Fedora Core DVD ISO image. The entry looks like this:
/path/i386/iso/FC4-i386-DVD.iso /path/i386/os iso9660 defaults 0 0 |
|