kickstart 定制ISO (未完待续)

要用的的工具:html

GIM:制做开机启动画面mysql

Ultraiso:制做isolinux

 

1.定制开机启动画面web

启动画面用的是一种比较奇怪的格式lss16,它限制图片使用16种颜色,除去前景和背景色只能有14种颜色。咱们须要ppmtolss16 giftopnm等程序,系统通常默认都安装了。sql

 

a)通常用gimp生成一个index模式的gif图形,颜色限制为14, 而后经过以下的办法进行转: express

修改完图片图片保存为 splash.gifapp

b)安装yum -y install syslinux less

c)giftopnm < splash.gif | ppmtolss16 > splash.lss ide

把保存后的文件放到一台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