LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 837|回复: 1

制作集成sp3的sles9 单张DVD盘

[复制链接]
发表于 2006-2-24 21:58:15 | 显示全部楼层 |阅读模式
1) Create SLES9 SP3 installation source with SLES9 YaST. It looks like this:

    .
    |-- SUSE-CORE-Version-9
    |   |-- CD1
    |   |-- CD2
    |   |-- CD3
    |   |-- CD4
    |   `-- CD5
    |-- SUSE-SLES-9-Service-Pack-Version-3
    |   |-- CD1
    |   |-- CD2
    |   `-- CD3
    |-- SUSE-SLES-Version-9
    |   `-- CD1
    |-- boot
    |   |-- directory.yast
    |   |-- loader -> ../SUSE-SLES-9-Service-Pack-Version-3/CD1/boot/loader
    |   |-- rescue -> ../SUSE-SLES-9-Service-Pack-Version-3/CD1/boot/rescue
    |   `-- root -> ../SUSE-SLES-Version-9/CD1/boot/root
    |-- content -> SUSE-SLES-Version-9/CD1/content
    |-- control.xml -> SUSE-SLES-Version-9/CD1/control.xml
    |-- driverupdate -> SUSE-SLES-9-Service-Pack-Version-3/CD1/driverupdate
    |-- linux -> SUSE-SLES-9-Service-Pack-Version-3/CD1/linux
    |-- media.1 -> SUSE-SLES-Version-9/CD1/media.1
    `-- yast
        |-- instorder
        `-- order

2) Remove the symbolic links in the boot menu and copy boot image

    cd boot
    rm loader rescue root
    cp -va ../SUSE-SLES-9-Service-Pack-Version-3/CD1/boot/loader
    cp -va ../SUSE-SLES-9-Service-Pack-Version-3/CD1/boot/rescue
    cp -va ../SUSE-SLES-9-Service-Pack-Version-3/CD1/boot/root

3) Remove source CDs and double contents to save space.

    rm -rf SUSE-CORE-Version-9/CD4
    rm -rf SUSE-CORE-Version-9/CD5
    rm -rf SUSE-SLES-9-Service-Pack-Version-2/CD3

    cd SUSE-SLES-9-Service-Pack-Version-2/CD1/suse
    rm -rf i586 noarch x86_64
    ln -s ../x86_64/update/SUSE-CORE/9/rpm/i586
    ln -s ../x86_64/update/SUSE-CORE/9/rpm/x86_64
    ln -s ../x86_64/update/SUSE-CORE/9/rpm/noarch

    cd SUSE-SLES-9-Service-Pack-Version-2/CD2/suse
    rm -rf i586 noarch nosrc src x86_64
    ln -s ../x86_64/update/SUSE-CORE/9/rpm/i586
    ln -s ../x86_64/update/SUSE-CORE/9/rpm/x86_64
    ln -s ../x86_64/update/SUSE-CORE/9/rpm/noarch
    ln -s ../x86_64/update/SUSE-CORE/9/rpm/nosrc
    ln -s ../x86_64/update/SUSE-CORE/9/rpm/src

4) Generate bootable ISO file with SUSE isolinux.

    mkisofs -r -J -l -allow-leading-dots -iso-level 4 \
      -b loader/isolinux.bin \
      -c loader/boot.cat -no-emul-boot \
      -boot-load-size 4 \
      -boot-info-table \
      -graft-points \
      -o ../sles9sp3.iso \
      .

5) Burn ISO image on DVD.

    growisofs -Z /dev/cdrecorder=../sles9sp3.iso

6) On the system installed with this DVD remove wrong installation sources
    and set them to match the DVD.

    rm -rf /var/adm/YaST/InstSrcManager/IS_CACHE_0x*
    installation_sources -e -a cd:///SUSE-SLES-9-Service-Pack-Version-3/CD1/
    installation_sources -e -a cd:///SUSE-SLES-Version-9/CD1/
    installation_sources -e -a cd:///SUSE-CORE-Version-9/CD1/


原作者邮件地址: listuser@adnovum.ch
---------------------------------------------------------------- -----
To unsubscribe, e-mail: suse-sles-e-unsubscribe@suse.com
For additional commands, e-mail: suse-sles-e-help@suse.com
发表于 2006-2-25 02:47:28 | 显示全部楼层
顶,Ù个Ô较牛,并且是ž际项î中需要的
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表