五、注意事项
从步骤中可以看到,大部分的内容还是沿用了系统安装光盘自带的文件。下面为一些未提及的信息简单的补充一下:
1、增加额外驱动这可以通过修改isolinux/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.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
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等文件,而要满足依赖要求是比较复杂的事情。可参考下面的链接说明:
六、附录参考资料:
这个链接比较慢,我打包了一份:
下载文件
内文分页: [2]
Tags: , ,
阅读(953) | 评论(0) | 转发(0) |