制作centos-livecd

  1. 安装livecd-tools
#yum -y install livecd-tools

如果安装过程中报错,镜像网站不可用。要重新配置yum源, 替换成中科大的mirror,可以参考
https://lug.ustc.edu.cn/wiki/mirrors/help/centos 替换/etc/yum.repos.d/CentOS-Base.repo之前,记得备份。 如果这样还是安装失败的话,建议下载rpm安装。

  1. 获取ks文件
#wget http://people.centos.org/arrfab/CentOS6/LiveCD-DVD/centos6-liveCD-desktop.cfg
  1. 编辑ks文件
[root@localhost livecd]# vim centos6-liveCD-desktop.cfg
lang en_US.UTF-8
keyboard us
timezone US/Eastern
#rootpw wavetop_888888
auth --useshadow --enablemd5
selinux --enforcing
firewall --disabled --service=mdns
repo --name="CentOS-6 - Media" --baseurl=file:///media/CentOS_6.4_Final
#--baseurl=http://mirrors.ustc.edu.cn/epel/6/$basearch   
# --baseurl=file://REPOPATH

xconfig --startxonboot
part / --size 8192 --fstype ext4
services --enabled=NetworkManager,network,sshd  --disabled=

可以设置root密码,默认开启或关闭的服务,设置键盘时区等。这里为了提高速度,我把repo 的源设置为cd镜像,就不用在线下载一些包了。

  1. 制作ios
# livecd-creator -c centos6-liveCD-desktop.cfg -f centos6-desktop

这样就可以创建出一个名为centos6-desktop.iso的镜像文件了。


参考: [1] Building Custom CentOS 6.4 LiveCD With

猜你喜欢

转载自blog.csdn.net/niu91/article/details/68067975
今日推荐