-
测试前准备工作
export WORKDIR="/tmp"
export ISODIR="/tmp/iso"
export MIRROR="http://192.168.10.202/RAYSLX"
export TARGET="/tmp/base"
export SUITE="baihong"
mkdir -p $ISODIR
mkdir -p $ISODIR/isolinux
mkdir -p $ISODIR/pool/main
mkdir -p $ISODIR/dists/baihong/main/rays-installer/binary-i386
mkdir -p $ISODIR/dists/baihong/main/binary-i386
mkdir -p $ISODIR/.disk
ln -sf baihong $ISODIR/dists/stable
ln -sf baihong $ISODIR/dists/testing
echo "RAYS LX 2.0r1 Installation Disk. Build 20070627" > $ISODIR/.disk/info
-
取得mini基线版本
cd $WORKDIR
svn export https://svn.swhss.cn:8000/svn/rays-installer/tags/r-i/2.0/mini/ installer
export PATH=$WORKDIR/installer/build/util:$PATH -
图形化引导界面的下载与安装
cd $WORKDIR
注释掉"DISPLAY ${SYSIDR}boot.txt"这行。添加一新行"GFXBOOT ${SYSIDR}bootlogo"。
svn export https://svn.swhss.cn:8000/svn/rays-installer/tags/packages/gfxboot-theme/3.2.23/ gfxboot
cd gfxboot
make
cp boot/message $WORKDIR/installer/build/boot/x86/bootlogo
vi $WORKDIR/installer/build/boot/x86/syslinux.cfg
...
#DISPLAY ${SYSIDR}boot.txt
GFXBOOT ${SYSIDR}bootlogo
...
vi $WORKDIR/installer/build/config/x86.cfg
在第155行之后添加一新行"cp boot/x86/bootlogo $( TEMP_CD_TREE)/bootlogo"
...
155 cp /usr/lib/syslinux/isolinux.bin $( TEMP_CD_TREE)
+++ cp boot/x86/bootlogo $( TEMP_CD_TREE)/bootlogo
156 $(foreach file,$(wildcard boot/x86/*.txt), /
...
-
创建带图形化引导界面的initrd.gz
cd $WORKDIR/installer/build
make reallyclean
echo "deb http://192.168.10.205/mini etch main/debian-installer" > sources.list.udeb
fakeroot make build_cdrom_isolinux
fakeroot make build_netboot-gtk
cp -f dest/cdrom/gtk/initrd.gz tmp/netboot-gtk/cd_tree/
cp -f dest/cdrom/gtk/vmlinuz tmp/netboot-gtk/cd_tree/linux
cp -rf tmp/netboot-gtk/cd_tree/* $ISODIR/isolinux/ -
安装程序相关包的下载与分发
cd $WORKDIR
mkdir -p udebs && cd udebs
cp -f $WORKDIR/installer/build/pkg-lists/udeb .
sh udeb
mkcd du . $ISODIR/pool/main -
基本系统相关包的下载与分发
cd $WORKDIR
sudo ln -sf /usr/lib/debootstrap/scripts/sid /usr/lib/debootstrap/scripts/$SUITE
sudo debootstrap --download-only $SUITE $TARGET $MIRROR
cd $TARGET/var/cache/apt/archives
mkcd d . $ISODIR/pool/main -
内核相关包的下载与分发
cd $WORKDIR
mkcd k d
mkcd k a bootsplash-theme-rays-lx-chs
mkcd k a linux-image-2.6.18-2-686
rm -rf udeb
mkdir -p kernel
cd kernel
echo "deb $MIRROR $SUITE main" > sources.list.deb
download-packages
cd apt.deb/cache/archives
mkcd d . $ISODIR/pool/main -
额外软件包的下载与分发
cd $WORKDIR
rm -rf udeb
cp -f $WORKDIR/installer/build/pkg-lists/deb .
mkdir -p extra
cd extra
echo "deb $MIRROR $SUITE main" > sources.list.deb
download-packages
cd apt.deb/cache/archives/
wget http://people.openrays.org/~s5unty/expires_20070930/rays-xconf-gen_0.1.0-1.rays1_i386.deb
wget http://people.openrays.org/~s5unty/expires_20070930/ddcxinfo-knoppix_0.6-6_i386.deb
wget http://people.openrays.org/~s5unty/expires_20070930/hwdata-knoppix_0.107-14_all.deb
wget http://people.openrays.org/~s5unty/expires_20070930/hwsetup_1.1-1_i386.deb
mkcd d . $ISODIR/pool/main -
创建发行版镜像ISO文件
cd $WORKDIR
mkdir -p indices && cd indices
wget http://192.168.10.202/debian/indices/override.etch.main.gz
wget http://192.168.10.202/debian/indices/override.etch.extra.main.gz
gzip -d *
mv override.etch.main override.baihong.main
mv override.etch.extra.main override.baihong.extra.main
cd $ISODIR && mkcd r ../
cd $WORKDIR && mkcd i ./iso
mini.iso制作流程
最新推荐文章于 2023-09-08 16:32:02 发布