要用的的工具:
GIM:制作开机启动画面
Ultraiso:制作iso
1.定制开机启动画面
启动画面用的是一种比较奇怪的格式lss16,它限制图片使用16种颜色,除去前景和背景色只能有14种颜色。我们需要ppmtolss16 giftopnm等程序,系统一般默认都安装了。
a)一般用gimp生成一个index模式的gif图形,颜色限制为14, 然后通过如下的办法进行转:
修改完图片图片保存为 splash.gif
b)安装yum -y install syslinux
c)giftopnm < splash.gif | ppmtolss16 > splash.lss
把保存后的文件放到一台linux里面,进行文件格式的转换
转换成功 转换完之后可以通过Ultraiso,放到定制iso里面验证
d)另外你还需要修改isolinux/boot.msg文件,做一些个性化的提示.
2.配置kickstart脚本行
boot.msg这个文件里面可以添加选项
a)最简单的一个方法就是在虚拟机上安装个需求的linux,把anaconda-ks.cfg的内容拷贝下来,之后修改些选项
# Kickstart file automatically generated by anaconda. install text 安装的文本模式的linux cdrom reboot 安装完后重启 lang zh_CN.UTF-8 keyboard us #network --device eth0 --bootproto dhcp 如果加#号注销了network选项可是在安装过程中交互网卡设定 rootpw --iscrypted $1$..tcshWI$q/1cmtfyjOCbjmUATIJDC1 firewall --disabled 关闭防火墙 authconfig --enableshadow --enablemd5 selinux –disabled 关闭selinux skipx timezone --utc Asia/Shanghai bootloader --location=mbr # The following is the partition information you requested # Note that any partitions you deleted are not expressed # here so unless you clear all partitions first, this is # not guaranteed to work #clearpart --linux --drives=sda #part /boot --fstype ext3 --size=100 --ondisk=sda #part pv.2 --size=0 --grow --ondisk=sda #volgroup VolGroup00 --pesize=32768 pv.2 #logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow #logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=672 --grow --maxsize=1344 zerombr yes 必须填 clearpart --all --drives=sda part /boot --fstype ext3 --size=100 part swap --size=1000 part / --fstype ext3 --size=8000 --grow
%packages 一下都是安装的软软件 @editors @text-internet @dialup @core @base @chinese-support device-mapper-multipath mysql-server web-server -sysreport |
转载于:https://blog.51cto.com/wgskking/554030