免费注册 查看新帖 |

Chinaunix

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

[求助]定制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

论坛徽章:
34
亥猪
日期:2015-03-20 13:55:11戌狗
日期:2015-03-20 13:57:01酉鸡
日期:2015-03-20 14:03:56未羊
日期:2015-03-20 14:18:30子鼠
日期:2015-03-20 14:20:14丑牛
日期:2015-03-20 14:20:31辰龙
日期:2015-03-20 14:35:34巳蛇
日期:2015-03-20 14:35:56操作系统版块每日发帖之星
日期:2015-11-06 06:20:00操作系统版块每日发帖之星
日期:2015-11-08 06:20:00操作系统版块每日发帖之星
日期:2015-11-19 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13
3 [报告]
发表于 2010-04-20 15:47 |只看该作者
一点一点改,把出现的问题贴出来。

论坛徽章:
0
4 [报告]
发表于 2010-04-20 15:55 |只看该作者
是的,一点一点改,

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

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
5 [报告]
发表于 2010-04-20 15:59 |只看该作者
本帖最后由 chenyx 于 2010-04-20 16:00 编辑

论坛里面有百湖写的一个教程http://linux.chinaunix.net/bbs/forum-78-1.html

论坛徽章:
0
6 [报告]
发表于 2010-04-20 16:19 |只看该作者
搞定了,不是改images里的boot.iso中的isolinux.cfg,而是改根目录下的isolinux中的isolinux.cfg

论坛徽章:
4
CU大牛徽章
日期:2013-03-13 15:29:07CU大牛徽章
日期:2013-03-13 15:29:49CU大牛徽章
日期:2013-03-13 15:30:192015年迎新春徽章
日期:2015-03-04 09:57:09
7 [报告]
发表于 2010-04-20 16:21 |只看该作者
学习了。

论坛徽章:
0
8 [报告]
发表于 2011-09-01 23:13 |只看该作者
搞定之后的配置是怎样的?

论坛徽章:
0
9 [报告]
发表于 2011-09-21 17:59 |只看该作者
学习
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP