- 论坛徽章:
- 0
|
http://syslinux.zytor.com/wiki/index.php/The_SYSLINUX_Project对于linux的启动有很大的贡献,无论怎么启动linux,它都可以实现。当然我此次关注的是光盘启动linux时的那个画面!先来看一个脚本splashtolss.sh :#!/bin/shusage() { echo "Usage: $0 " exit 1}if [ -z "$1" -o -z "$2" ]; then usagefipngtopnm $1 | ppmtolss16 \#cdcfd5=7 \#ffffff=15 \#000000=0 \#5b6c93=9 > $2作者无从查起,是从某个最流行的发行版中抽取出来的。其中pngtopnm和ppmtolss16分别是netbpm和ppmtolss这两个程序包中的指令。
isolinux的相关制作文档
下面就以asianux3.0为原型,以更换其启动画面为目的,用实际操作来对话:lee@lee-laptop:~/桌面$ mkdir isolinux复制isolinux.cfg,*.msg,相应的内核启动文件,isolinux.bin,boot.cat到当前目录下:lee@lee-laptop:~/桌面/DIY/isolinux$ lsboot.cat general.msg isolinux.bin memtest param.msg vmlinuzboot.msg initrd.img isolinux.cfg options.msg rescue.msglee@lee-laptop:~/桌面/DIY/isolinux$ cat boot.msg splash.lss - To install or upgrade in graphical mode, press the 0107 key. - To install or upgrade in text mode, type: 01linux text 07. - Use the function keys listed below for more information.0f[F1-Main] [F2-Options] [F3-General] [F4-Kernel] [F5-Rescue]07从此文件我们可以看到,我们复制的文件还差一个splash.lss找一张宽X高=640X320的png图片,如果你能够做一张出来,那更好!!电影赤壁正在上演,那么本人就对电影的热情来将其海报做成今天我们的实验品。GIMP!感慨其强大!废话就不谈了,用我蹩脚的技法修改网上down来的海报.lee@lee-laptop:~/桌面$ ./splashtolss.sh red-cliff.png splash.lss/usr/bin/ppmtolss16: Warning: color palette truncated (3939 colors ignored)204800 pixels, 2762 bytes, (97.30% compression)lee@lee-laptop:~/桌面$ mv splash.lss DIY/isolinuxlee@lee-laptop:~/桌面/DIY$ mkisofs -o test.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table ./I: -input-charset not specified, using utf-8 (detected in locale settings)Size of boot image is 4 sectors -> No emulationTotal translation table size: 2048Total rockridge attributes bytes: 0Total directory bytes: 2158Path table size(bytes): 26Max brk space used 03468 extents written (6 MB)特别提示:红色的部分,另外关于特殊的参数可以使用,详情请参见mkisofs --help.截个图为证。
![]()
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6303/showart_1078621.html |
|