免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5479 | 回复: 3
打印 上一主题 下一主题

[求助]定制CentOS自动安装光盘 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-04-20 13:32 |显示全部楼层 |倒序浏览
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镜像里默认的.

帮忙指出问题所在,谢谢!

论坛徽章:
0
2 [报告]
发表于 2010-04-20 15:27 |显示全部楼层
ding

论坛徽章:
0
3 [报告]
发表于 2010-04-20 15:55 |显示全部楼层
是的,一点一点改,

不管我怎么改isolinux.cfg, 总是出现与没有定制过的光盘一样,也不报错.

论坛徽章:
0
4 [报告]
发表于 2010-04-20 16:19 |显示全部楼层
搞定了,不是改images里的boot.iso中的isolinux.cfg,而是改根目录下的isolinux中的isolinux.cfg
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP