- 论坛徽章:
- 0
|
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镜像里默认的.
帮忙指出问题所在,谢谢! |
|