Chinaunix

标题: [求助]定制CentOS自动安装光盘 [打印本页]

作者: lingfengxp    时间: 2010-04-20 13:32
标题: [求助]定制CentOS自动安装光盘
Hi,all

我在定制CentOS自动安装盘里,总不能成功,现在把配置粘出来,请各位大侠帮忙看一下:

版本:CentOS-5.4_x86_64-DVD

位于images里的boot.iso里的isolinux.cfg配置如下:

default auto
prompt 1
timeout 10
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label linux
  kernel vmlinuz
  append initrd=initrd.img
label text
  kernel vmlinuz
  append initrd=initrd.img text
label auto
  kernel vmlinuz
  append ks=ks.cfg initrd=initrd.img
label local
  localboot 1
label memtest86
  kernel memtest
  append -

我把ks.cfg也放在了boot.iso里

ks.cfg as follows:

# Kickstart file automatically generated by anaconda.

install
cdrom
lang en_US.UTF-8
keyboard us

#Static IP configuration
network --device eth0 --bootproto dhcp --hostname ylxm0001.private.ciowiki.cn --onboot=yes --noipv6

text
skipx
rootpw --iscrypted $1$QHqFPA5Q$Eb2Up0kaG11qQq2s3rlie0
authconfig --enableshadow --enablemd5

# Firewall configuration
firewall --disabled
selinux --disabled
timezone --utc Asia/Shanghai
bootloader --location=mbr --driveorder=sda

# Partiton management
clearpart --linux
part /boot --fstype ext3 --size=100 --asprimary
part / --fstype ext3 --size=30720 --asprimary
part swap --size=1024 --asprimary
part pv.5 --size=100 --grow --asprimary

%packages
@admin-tools
@base
@chinese-support
@core
@editors
@system-tools
@text-internet
@xen
keyutils
kexec-tools
iscsi-initiator-utils
trousers
bridge-utils
fipscheck
device-mapper-multipath
audit
Virtualization-en-US
net-snmp

%post
# Disable unused service
chkconfig acpid off
chkconfig anacron off
chkconfig auditd off
chkconfig avahi-daemon off
chkconfig bluetooth off
chkconfig firstboot off
chkconfig gpm off
chkconfig hidd off
chkconfig ip6tables off
chkconfig iptables off
chkconfig irqbalance off
chkconfig kudzu off
chkconfig mcstrans off
chkconfig mdmonitor off
chkconfig pcscd off
chkconfig portmap off
chkconfig readahead_early off
chkconfig restorecond off
chkconfig rpcgssd off
chkconfig rpcidmapd off
chkconfig sendmail off
chkconfig smartd off
chkconfig yum-updatesd off
chkconfig httpd off


# Initing logic volume
pvcreate /dev/sda4
vgcreate lv /dev/sda4

只有这两个配置,别的都是CentOS镜像里默认的.

帮忙指出问题所在,谢谢!
作者: lingfengxp    时间: 2010-04-20 15:27
ding
作者: vermouth    时间: 2010-04-20 15:47
一点一点改,把出现的问题贴出来。
作者: lingfengxp    时间: 2010-04-20 15:55
是的,一点一点改,

不管我怎么改isolinux.cfg, 总是出现与没有定制过的光盘一样,也不报错.
作者: chenyx    时间: 2010-04-20 15:59
本帖最后由 chenyx 于 2010-04-20 16:00 编辑

论坛里面有百湖写的一个教程http://linux.chinaunix.net/bbs/forum-78-1.html
作者: lingfengxp    时间: 2010-04-20 16:19
搞定了,不是改images里的boot.iso中的isolinux.cfg,而是改根目录下的isolinux中的isolinux.cfg
作者: dooros    时间: 2010-04-20 16:21
学习了。
作者: gun007_cu    时间: 2011-09-01 23:13
搞定之后的配置是怎样的?
作者: 7tigerr    时间: 2011-09-21 17:59
学习




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2