五、注意事项 从步骤中可以看到,大部分的内容还是沿用了系统安装光盘自带的文件。下面为一些未提及的信息简单的补充一下: 1、增加额外驱动
这可以通过修改isolinux/initrd.img文件,可参考: 分析initrd.img文件 2、自定义安装界面
stage2.img保存了安装界面使用的信息,通过修改该文件可个性化安装界面,日后我会另外说明; 3、修改光盘启动画面
光盘的启动画面是isolinux/splash.lss,通过安装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.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.lss
cp splash.lss /data/disk/isolinux/splash.lss 4、关于splittree.py脚本
如果你还是必须分开多张CD光盘,可参考下面的做法:(注意,与上面的例子无关)
RELEASE="Fedora Core 2 (Tettnang) with updates to $(date '+%Y-%M-%d %H:%m')"
rm -rf i386-disc[1-9]
splittree.py --arch=i386 --total-discs=8 --bin-discs=4 --src-discs=4 --release-string="$RELEASE" \ --pkgorderfile=$FCBASE/fedora/pkgfile.`date +%Y-%m-%d` \ --distdir=$FCBASE/fedora/i386 \ --srcdir=$FCBASE/fedora/i386/SRPMS --productpath=Fedora
rm -f $FCBASE/i386-disc1/Fedora/base/hdlist*
$FCBASE/genhdlist --withnumbers --fileorder \ $FCBASE/fedora/pkgfile.`date +%Y-%m-%d` \ $FCBASE/fedora/i386-disc[1234]
刻录:
#!/bin/sh
myname="Joe Blow "
bootimg="isolinux/isolinux.bin"
bootcat="isolinux/boot.cat"
distname="Tettnang"
distvers="2"
mkisopts="-R -J -T"
bootopts="-no-emul-boot -boot-load-size 4 -boot-info-table"
mydate="$(date '+%d %b %Y')"
mkisofs $mkisopts $bootopts \
-V "Fedora Core $distver ($distname) UPDATED Disk 1" \
-A "Fedora Coret $distver ($distname) update created on $mydate" \
-P "$myname" \
-p "$myname" \
-b "$bootimg" \
-c "$bootcat" \
-x lost+found \
-o "$distname"-i386-disc1.iso \
i386-disc1
for i in 2 3 4 ; do
mkisofs $mkisopts \
-V "Fedora Core $distver ($distname) UPDATED Disk $i" \
-A "Fedora Core $distver ($distname) update created on $mydate" \
-P "$myname" \
-p "$myname" \
-x lost+found \
-o "$distname"-i386-disc${i}.iso \
i386-disc${i}
done
for i in 1 2 3 4 ; do
mkisofs $mkisopts \
-V "Fedora Core $distver ($distname) UPDATED Disk $i" \
-A "Fedora Core $distver ($distname) update created on $mydate" \
-P "$myname" \
-p "$myname" \
-x lost+found \
-o "$distname"-SRPMS-disc${i}.iso \
i386-disc$(( $i + 3 ))
done 5、关于buildinstall脚本
原来,在anaconda安装程序的制作中,buildinstall脚本是运行在mkisofs前的最后一步。它可以自动生成新的stage2.img等镜像文件,以便在安装程序中使用。
但在实际操作中,我发现该脚本必须依赖很多的rpm包,并从其中提取适当的执行脚本生成stage2.img等文件,而要满足依赖要求是比较复杂的事情。可参考下面的链接说明: Buildinstall package requirements 六、附录
参考资料: fedora Anaconda Linux: Updating and Rebuilding Fedora Core 2 Installation CDs Création de CD d'installation de Fedora avec les mises à jour(法语) 基于centos4.3的linux发行版制作过程 How to make your own distro in 3 not-so simple steps
这个链接比较慢,我打包了一份:
下载文件 点击这里下载文件 Customization of Anaconda Installer on Fedora Core 1